import { z } from 'zod'; import { ApId } from '../../core/common/id-generator'; import { WebhookHandshakeConfiguration } from '../trigger'; export type FlowId = ApId; export declare enum FlowStatus { ENABLED = "ENABLED", DISABLED = "DISABLED" } export declare enum FlowOperationStatus { NONE = "NONE", DELETING = "DELETING", /** @deprecated No longer set — status changes are now synchronous via distributed lock */ ENABLING = "ENABLING", /** @deprecated No longer set — status changes are now synchronous via distributed lock */ DISABLING = "DISABLING" } export declare const flowExecutionStateKey: (flowId: FlowId) => string; export type FlowExecutionState = { exists: false; } | { exists: true; handshakeConfiguration: WebhookHandshakeConfiguration | undefined; flow: Flow; platformId: string; }; export declare const Flow: z.ZodObject<{ projectId: z.ZodString; externalId: z.ZodString; ownerId: z.ZodOptional>; folderId: z.ZodOptional>; status: z.ZodEnum; publishedVersionId: z.ZodOptional>; metadata: z.ZodOptional>>; operationStatus: z.ZodEnum; timeSavedPerRun: z.ZodOptional>; templateId: z.ZodOptional>; id: z.ZodString; created: z.ZodPipe, z.ZodString>; updated: z.ZodPipe, z.ZodString>; }, z.core.$strip>; export type Flow = z.infer; export declare const PopulatedFlow: z.ZodObject<{ projectId: z.ZodString; externalId: z.ZodString; ownerId: z.ZodOptional>; folderId: z.ZodOptional>; status: z.ZodEnum; publishedVersionId: z.ZodOptional>; metadata: z.ZodOptional>>; operationStatus: z.ZodEnum; timeSavedPerRun: z.ZodOptional>; templateId: z.ZodOptional>; id: z.ZodString; created: z.ZodPipe, z.ZodString>; updated: z.ZodPipe, z.ZodString>; version: z.ZodObject<{ flowId: z.ZodString; displayName: z.ZodString; trigger: z.ZodUnion; settings: z.ZodObject<{ sampleData: z.ZodOptional; sampleDataInputFileId: z.ZodOptional; lastTestDate: z.ZodOptional; }, z.core.$strip>>; propertySettings: z.ZodRecord; schema: z.ZodOptional; }, z.core.$strip>>; customLogoUrl: z.ZodOptional; pieceName: z.ZodString; pieceVersion: z.ZodString; triggerName: z.ZodOptional; input: z.ZodRecord; }, z.core.$strip>; name: z.ZodString; valid: z.ZodBoolean; displayName: z.ZodString; nextAction: z.ZodOptional; lastUpdatedDate: z.ZodString; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral; settings: z.ZodAny; name: z.ZodString; valid: z.ZodBoolean; displayName: z.ZodString; nextAction: z.ZodOptional; lastUpdatedDate: z.ZodString; }, z.core.$strip>]>; updatedBy: z.ZodOptional>; valid: z.ZodBoolean; schemaVersion: z.ZodOptional>; agentIds: z.ZodArray; state: z.ZodEnum; connectionIds: z.ZodArray; backupFiles: z.ZodOptional>>; notes: z.ZodArray>; color: z.ZodEnum; position: z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; }, z.core.$strip>; size: z.ZodObject<{ width: z.ZodNumber; height: z.ZodNumber; }, z.core.$strip>; createdAt: z.ZodString; updatedAt: z.ZodString; }, z.core.$strip>>; id: z.ZodString; created: z.ZodPipe, z.ZodString>; updated: z.ZodPipe, z.ZodString>; }, z.core.$strip>; triggerSource: z.ZodOptional; cronExpression: z.ZodString; timezone: z.ZodString; }, z.core.$strip>>>; }, z.core.$strip>>; }, z.core.$strip>; export type PopulatedFlow = z.infer; export declare const PopulatedTriggerSource: z.ZodObject<{ type: z.ZodEnum; projectId: z.ZodString; flowId: z.ZodString; triggerName: z.ZodString; schedule: z.ZodOptional; cronExpression: z.ZodString; timezone: z.ZodString; }, z.core.$strip>>>; flowVersionId: z.ZodString; pieceName: z.ZodString; pieceVersion: z.ZodString; deleted: z.ZodOptional>; simulate: z.ZodBoolean; id: z.ZodString; created: z.ZodPipe, z.ZodString>; updated: z.ZodPipe, z.ZodString>; flow: z.ZodObject<{ projectId: z.ZodString; externalId: z.ZodString; ownerId: z.ZodOptional>; folderId: z.ZodOptional>; status: z.ZodEnum; publishedVersionId: z.ZodOptional>; metadata: z.ZodOptional>>; operationStatus: z.ZodEnum; timeSavedPerRun: z.ZodOptional>; templateId: z.ZodOptional>; id: z.ZodString; created: z.ZodPipe, z.ZodString>; updated: z.ZodPipe, z.ZodString>; }, z.core.$strip>; }, z.core.$strip>; export type PopulatedTriggerSource = z.infer; //# sourceMappingURL=flow.d.ts.map