export declare const POLLING_INTERVAL_MS = 3000; export declare const STABILITY_REQUIRED_POLLS = 2; export type PollState = { lastMessageCount: number; stablePolls: number; }; export type PollSnapshot = { messageCount: number; isIdle: boolean; result?: string; }; export declare function createPollState(): PollState; export declare function checkStability(state: PollState, currentMessageCount: number, isIdle: boolean): { stable: boolean; nextState: PollState; }; export declare function pollUntilStable(fetchSnapshot: () => Promise, maxPolls?: number, signal?: AbortSignal): Promise;