import { type BackboneDurableWorkflowRunContract, type BackboneDurableWorkflowInput, type BackboneWorkflowStatus } from '../contracts/backboneDurableWorkflow.js'; export declare const DURABLE_CREATIVE_WORKFLOW_ENDPOINT = "/v1/creative-agent/workflows"; type RequestCredentialsLike = 'omit' | 'same-origin' | 'include'; type FetchLike = typeof fetch; export type DurableCreativeWorkflowWaitingReason = 'ask_clarifying_question' | 'select_media_required' | 'cost_approval_required' | 'cost_reauthorization_required' | 'safety_review_required' | 'workflow_user_input_required' | 'insufficient_credit' | 'permission_required' | 'other'; export interface DurableCreativeWorkflowRecord { workflowId: string; safeContentFilter?: boolean; title?: string; status: BackboneWorkflowStatus; waitingReason?: DurableCreativeWorkflowWaitingReason; awaitingCostApproval?: boolean; input?: Record; plan?: BackboneDurableWorkflowRunContract; steps?: unknown[]; events?: unknown[]; artifacts?: unknown[]; billingPreview?: unknown; billingPreviews?: unknown[]; createTime?: number; updateTime?: number; } export interface DurableCreativeWorkflowClientOptions { apiKey?: string; apiBaseUrl: string; credentials?: RequestCredentialsLike; fetchImpl?: FetchLike; signal?: AbortSignal; tokenType?: string; appSource?: string; idempotencyKey?: string; maxEstimatedCapacityUnits?: number; confirmCost?: boolean; safeContentFilter?: boolean; } export interface StartDurableCreativeWorkflowRequest { input: Omit; token_type?: string; app_source?: string; media_references?: unknown[]; max_estimated_capacity_units?: number; confirm_cost?: boolean; safe_content_filter?: boolean; } export declare function getDurableCreativeWorkflowUrl(workflowId: string | undefined, apiBaseUrl: string): string; export declare function getDurableCreativeWorkflowEventsUrl(workflowId: string, apiBaseUrl: string): string; export declare function buildDurableCreativeWorkflowPreview(input: BackboneDurableWorkflowInput, options?: { workflowId?: string; now?: string; title?: string; }): BackboneDurableWorkflowRunContract; export declare function buildStartDurableCreativeWorkflowRequest(input: BackboneDurableWorkflowInput, options?: Pick): StartDurableCreativeWorkflowRequest; export declare function startDurableCreativeWorkflow(input: BackboneDurableWorkflowInput, options: DurableCreativeWorkflowClientOptions): Promise; export declare function getDurableCreativeWorkflow(workflowId: string, options: DurableCreativeWorkflowClientOptions): Promise; export declare function listDurableCreativeWorkflows(options: DurableCreativeWorkflowClientOptions & { limit?: number; offset?: number; }): Promise<{ workflows: DurableCreativeWorkflowRecord[]; next: number | null; }>; export declare function getDurableCreativeWorkflowEvents(workflowId: string, options: DurableCreativeWorkflowClientOptions): Promise; export interface DurableCreativeWorkflowEventFrame { id?: string; event: string; data: unknown; } export declare function parseSseChunk(chunk: string): DurableCreativeWorkflowEventFrame | null; export interface StreamDurableCreativeWorkflowEventsOptions extends DurableCreativeWorkflowClientOptions { lastEventId?: string | number; } export declare function streamDurableCreativeWorkflowEvents(workflowId: string, options: StreamDurableCreativeWorkflowEventsOptions): AsyncGenerator; export declare function getDurableCreativeWorkflowCancelUrl(workflowId: string, apiBaseUrl: string): string; export declare function getDurableCreativeWorkflowResumeUrl(workflowId: string, apiBaseUrl: string): string; export interface CancelDurableCreativeWorkflowResult { workflow: DurableCreativeWorkflowRecord; transitioned: boolean; } export interface ResumeDurableCreativeWorkflowResult { workflow: DurableCreativeWorkflowRecord; resumed: boolean; } export declare function cancelDurableCreativeWorkflow(workflowId: string, options: DurableCreativeWorkflowClientOptions): Promise; export declare function resumeDurableCreativeWorkflow(workflowId: string, options: DurableCreativeWorkflowClientOptions): Promise; export {}; //# sourceMappingURL=durableWorkflowClient.d.ts.map