import type { FetchedMessage, FetchQuery } from '../../types/message'; import type { CommandContext } from './types'; export type FetchOptions = { readonly uid?: boolean; readonly binary?: boolean; readonly changedSince?: bigint; readonly onUntaggedFetch?: (message: FetchedMessage, done: (err?: Error) => void) => void; }; export type FetchResult = { readonly count: number; readonly list: FetchedMessage[]; }; export type FetchStreamOptions = { readonly uid?: boolean; readonly binary?: boolean; readonly changedSince?: bigint; }; export declare const fetch: (ctx: CommandContext, range: string, query: FetchQuery, options?: FetchOptions) => Promise; export declare function fetchStream(ctx: CommandContext, range: string, query: FetchQuery, options?: FetchStreamOptions): AsyncGenerator; //# sourceMappingURL=fetch.d.ts.map