import { z } from 'zod'; import { StreamStepProgress } from '../../engine/engine-operation'; export declare enum FlowRunStatus { FAILED = "FAILED", QUOTA_EXCEEDED = "QUOTA_EXCEEDED", INTERNAL_ERROR = "INTERNAL_ERROR", PAUSED = "PAUSED", QUEUED = "QUEUED", RUNNING = "RUNNING", SUCCEEDED = "SUCCEEDED", MEMORY_LIMIT_EXCEEDED = "MEMORY_LIMIT_EXCEEDED", TIMEOUT = "TIMEOUT", CANCELED = "CANCELED", LOG_SIZE_EXCEEDED = "LOG_SIZE_EXCEEDED" } export declare enum PauseType { DELAY = "DELAY", WEBHOOK = "WEBHOOK" } export declare const DelayPauseMetadata: z.ZodObject<{ type: z.ZodLiteral; resumeDateTime: z.ZodString; requestIdToReply: z.ZodOptional; handlerId: z.ZodOptional; streamStepProgress: z.ZodOptional>; }, z.core.$strip>; export type DelayPauseMetadata = z.infer; export declare const RespondResponse: z.ZodObject<{ status: z.ZodOptional; body: z.ZodOptional; headers: z.ZodOptional>; }, z.core.$strip>; export type RespondResponse = z.infer; export declare const StopResponse: z.ZodObject<{ status: z.ZodOptional; body: z.ZodOptional; headers: z.ZodOptional>; }, z.core.$strip>; export type StopResponse = z.infer; export declare const WebhookPauseMetadata: z.ZodObject<{ type: z.ZodLiteral; requestId: z.ZodString; requestIdToReply: z.ZodOptional; response: z.ZodObject<{ status: z.ZodOptional; body: z.ZodOptional; headers: z.ZodOptional>; }, z.core.$strip>; handlerId: z.ZodOptional; streamStepProgress: z.ZodOptional>; }, z.core.$strip>; export type WebhookPauseMetadata = z.infer; export declare const PauseMetadata: z.ZodUnion; resumeDateTime: z.ZodString; requestIdToReply: z.ZodOptional; handlerId: z.ZodOptional; streamStepProgress: z.ZodOptional>; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; requestId: z.ZodString; requestIdToReply: z.ZodOptional; response: z.ZodObject<{ status: z.ZodOptional; body: z.ZodOptional; headers: z.ZodOptional>; }, z.core.$strip>; handlerId: z.ZodOptional; streamStepProgress: z.ZodOptional>; }, z.core.$strip>]>; export type PauseMetadata = z.infer; export declare const isFlowRunStateTerminal: ({ status, ignoreInternalError }: { status: FlowRunStatus; ignoreInternalError: boolean; }) => boolean; export declare const FAILED_STATES: FlowRunStatus[]; export declare const isFailedState: (status: FlowRunStatus) => boolean; //# sourceMappingURL=flow-execution.d.ts.map