generated from interop-alliance/isomorphic-lib-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d345b53
commit b06e012
Showing
3 changed files
with
32 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Pack } from 'tar-stream' | ||
import { Buffer } from 'buffer' | ||
|
||
export interface ActorProfileOptions { | ||
actorProfile?: any | ||
outbox?: any | ||
followers?: any | ||
followingAccounts?: any | ||
lists?: any | ||
bookmarks?: any | ||
likes?: any | ||
blockedAccounts?: any | ||
blockedDomains?: any | ||
mutedAccounts?: any | ||
} | ||
|
||
/** | ||
* Exports an actor profile and associated data as a tarball. | ||
* @param options - The options for the actor profile. | ||
* @returns A tar-stream Pack object containing the exported data. | ||
*/ | ||
export function exportActorProfile(options: ActorProfileOptions): Pack | ||
|
||
/** | ||
* Imports an actor profile from a tarball buffer. | ||
* @param tarBuffer - The tarball buffer containing the actor profile. | ||
* @returns A promise resolving to the imported actor profile data. | ||
*/ | ||
export function importActorProfile(tarBuffer: Buffer): Promise<any> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters