import type { Logger } from "./logger.js"; import type { LogLevel } from "./builder.js"; export interface PendingCommand { id: string; type: string; position: Record | null; sourceFlowTypes: string[] | null; reason: string | null; stopAt: string | null; } export interface CommandPollerOptions { cpBaseUrl: string; pathwayId: string; apiKey: string; intervalMs: number; logger: Logger; onCommand: (command: PendingCommand) => Promise; logLevel: { pollSuccess: LogLevel; pollFailure: LogLevel; }; } export declare class CommandPoller { private readonly cpBaseUrl; private readonly pathwayId; private readonly apiKey; private readonly intervalMs; private readonly logger; private readonly onCommand; private readonly logLevel; private timer; private polling; constructor(options: CommandPollerOptions); start(): void; stop(): void; private poll; private handleCommand; } //# sourceMappingURL=command-poller.d.ts.map