UNPKG

@fedify/fedify

Version:

An ActivityPub server framework

27 lines 945 B
/** * A page of items. */ export interface PageItems<TItem> { prevCursor?: string | null; nextCursor?: string | null; items: TItem[]; } /** * Calculates the [partial follower collection digest][1]. * * [1]: https://w3id.org/fep/8fcf#partial-follower-collection-digest * @param uris The URIs to calculate the digest. Duplicate URIs are ignored. * @returns The digest. */ export declare function digest(uris: Iterable<string | URL>): Promise<Uint8Array>; /** * Builds [`Collection-Synchronization`][1] header content. * * [1]: https://w3id.org/fep/8fcf#the-collection-synchronization-http-header * * @param collectionId The sender's followers collection URI. * @param actorIds The actor URIs to digest. * @returns The header content. */ export declare function buildCollectionSynchronizationHeader(collectionId: string | URL, actorIds: Iterable<string | URL>): Promise<string>; //# sourceMappingURL=collection.d.ts.map