import type { SessionStatus } from "./types.js"; export interface IdlePollLoopOptions { readonly getStatus: () => SessionStatus | undefined; readonly getCommand: () => string | undefined; readonly isPollingCommand: (command: string) => boolean; readonly dispatchPollingPrompt: (command: string, injected?: boolean) => void | Promise; readonly dispatchRegularIdleCommand: (command: string) => void | Promise; readonly preDispatchHook?: () => string | null | Promise; readonly pollDelayMs?: number; readonly regularIdleDelayMs?: number; } export declare class IdlePollLoop { private readonly options; private timer; private running; private readonly pollDelayMs; private readonly regularIdleDelayMs; constructor(options: IdlePollLoopOptions); start(): void; stop(): void; private fire; }