export declare enum TsQueuePullOrder { /** * sort by score in ascending order */ ASC = 1, /** * sort by score in descending order */ DESC = 2 } export type TsQueueMember = { channel: string; timestamp: number; data: object; }; /** * pull */ export type TsQueuePullOptions = { pageNo?: number; pageSize?: number; pageKey?: number; /** * direction of sorting by score value */ order?: TsQueuePullOrder; /** * exclude start member */ excludeStartMember?: boolean; }; export type TsQueuePullResult = { /** * the total number of members */ totalMembers: number; /** * the member count in the list */ total: number; /** * member list */ list: Array; /** * page key */ pageKey: number; }; /** * count */ export type TsQueueCountOptionItem = { /** * the key of the Sorted Set */ channel: string; /** * when an exact search cannot precisely find the specified member, * allow searching for the closest one instead */ allowClosestMemberSearch?: boolean; /** * if the user specifies this parameter, * statistics will start from this parameter. * default to 0 */ startTimestamp?: number; /** * if the user specifies this parameter, * statistics will end with this parameter. * default to -1 */ endTimestamp?: number; /** * if the user specifies this parameter, * the last [lastElement] elements will be returned. */ lastElement?: number; }; export type TsQueueCountOptions = { options: Array; }; export type TsQueueCountResultItem = { /** * the key of the Sorted Set */ channel: string; count: number; lastElementList?: Array; }; export type TsQueueCountResult = { list: Array; }; //# sourceMappingURL=TsQueueModels.d.ts.map