@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
15 lines • 1.09 kB
TypeScript
import { QueryStreamController } from '~/core/liveCollection/QueryStreamController';
import { EnumPostActions } from '~/postRepository/observers/enums';
export declare class GlobalFeedQueryStreamController extends QueryStreamController<Amity.PostPayload, Amity.GlobalFeedLiveCollection> {
private notifyChange;
private preparePayload;
constructor(query: Amity.GlobalFeedLiveCollection, cacheKey: string[], notifyChange: (params: Amity.LiveCollectionNotifyParams) => void, preparePayload: (response: Amity.PostPayload) => Amity.ProcessedPostPayload);
saveToMainDB(response: Amity.PostPayload): Promise<void>;
appendToQueryStream(response: Amity.PostPayload & Partial<Amity.Pagination>, direction: Amity.LiveCollectionPageDirection, refresh?: boolean): void;
reactor(action: EnumPostActions): (post: Amity.InternalPost) => void;
subscribeRTE(createSubscriber: {
fn: (reactor: (post: Amity.InternalPost) => void) => Amity.Unsubscriber;
action: EnumPostActions;
}[]): Amity.Unsubscriber[];
}
//# sourceMappingURL=QueryStreamController.d.ts.map