import type { StatusData } from "./types.js";
export interface PollResult {
    taskId: string;
    output: string;
    raw?: StatusData;
}
/**
 * Submit a generation task and poll until completion.
 *
 * @param endpoint - The POST endpoint (e.g., "/api/ai/generate")
 * @param scenario - The scenario string for status polling
 * @param body - The request body
 * @param maxPolls - Max poll attempts (default 180)
 * @returns The output URL(s) from the completed task
 */
export declare function submitAndPoll(endpoint: string, scenario: string, body: Record<string, unknown>, maxPolls?: number): Promise<PollResult>;
//# sourceMappingURL=poller.d.ts.map