export declare function exportDraft(client: Cumulus, agentId: string): Promise<{ schemaVersion: 1; kind: "cumulus.studio-backport"; agentId: string; revision: number; draftHash: string; draft: { state: components["schemas"]["DraftsEditResponse200"]; name: string; channels: ("cloud" | "phone")[]; languages: ("en" | "es")[]; flow: { schemaVersion: 2; id: string; version: number; startNodeId: string; startSpeaker: "agent" | "user"; globalPrompt: string; nodes: { id: string; kind: "conversation" | "end" | "branch" | "transfer_call" | "function" | "extract_dynamic_variables" | "verify_identity" | "tokenize_private" | "component"; edges: { id?: string; destinationNodeId?: string; slot: "edges" | "else_edge" | "skip_response_edge" | "always_edge" | "edge" | "success_edge"; condition: { type: "always"; } | { type: "conversation_language"; language: "en" | "es"; } | { type: "prompt"; prompt: string; } | { type: "equation"; operator: "&&" | "||"; equations: { left: string; operator: "==" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "is_set" | "is_not_set"; right: string; }[]; }; compliance?: { sets: "rpc_confirmed"[]; }; }[]; name?: string; instruction?: { type: "prompt" | "static_text"; text: string; }; startSpeaker?: "agent" | "user"; interruptionSensitivity?: number; voiceSpeed?: number; languageLocked?: boolean; globalNodeSetting?: { condition: string; coolDown?: number; }; toolId?: string; waitForResult?: boolean; speakDuringExecution?: boolean; executionMessage?: { type: "prompt" | "static_text"; text: string; }; transfer?: { destination: { type: "predefined"; number: string; } | { type: "inferred"; prompt: string; }; option: { type: "cold_transfer" | "warm_transfer"; showTransfereeAsCaller?: boolean; optOutHumanDetection?: boolean; enableBridgeAudioCue?: boolean; onHoldMusic?: string; agentDetectionTimeoutMs?: number; agentDetectionPrompt?: string; transferMessage?: { type: "prompt" | "static_text"; text: string; }; privateHandoffMessage?: { type: "prompt" | "static_text"; text: string; }; coldTransferMode?: string; }; ignoreE164Validation: boolean; }; variables?: { name: string; type: "string" | "number" | "boolean" | "enum"; description: string; choices?: string[]; }[]; modelChoice?: { model: components["schemas"]["ModelIdentity"]; credential?: { id: string; version: string; provider: string; }; type: "cascading"; highPriority: boolean; reasoningEffort?: "low" | "medium" | "high"; }; componentId?: string; verification?: { subjectVariable: string; fields: { id: string; expectedVariable: string; privateAliases?: string[]; enabledVariable: string; format: { kind: "digits"; length: number; } | { kind: "date_yyyymmdd"; }; prompt: { en: string; es?: string; }; }[]; required: { kind: "fixed"; count: number; } | { kind: "variable"; name: string; }; timeoutMs: number; lookup?: { toolId: string; fieldId: string; parameter: string; arguments: { parameter: string; variable: string; }[]; }; }; tokenization?: { toolId: string; subjectVariable: string; consentPrompt: { en: string; es?: string; }; timeoutMs: number; fields: { id: string; parameter: string; minDigits: number; maxDigits: number; encoding: "string" | "integer"; minimum?: number; maximum?: number; prompt: { en: string; es?: string; }; }[]; arguments: { parameter: string; source: { kind: "variable"; name: string; } | { kind: "constant"; value: (string | number | boolean) | null; }; }[]; tokenIdPath: string; tokenVariable: string; last4Variable: string; last4Field: string; }; }[]; tools: { id: string; type: "custom"; name: string; description: string; method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; responseVariables: { [key: string]: string; }; responseVariablePolicy?: "required" | "replace_available"; speakAfterExecution?: boolean; }[]; components: { id: string; startNodeId: string; nodes: { id: string; kind: "conversation" | "end" | "branch" | "transfer_call" | "function" | "extract_dynamic_variables" | "verify_identity" | "tokenize_private" | "component"; edges: { id?: string; destinationNodeId?: string; slot: "edges" | "else_edge" | "skip_response_edge" | "always_edge" | "edge" | "success_edge"; condition: { type: "always"; } | { type: "conversation_language"; language: "en" | "es"; } | { type: "prompt"; prompt: string; } | { type: "equation"; operator: "&&" | "||"; equations: { left: string; operator: "==" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "is_set" | "is_not_set"; right: string; }[]; }; compliance?: { sets: "rpc_confirmed"[]; }; }[]; name?: string; instruction?: { type: "prompt" | "static_text"; text: string; }; startSpeaker?: "agent" | "user"; interruptionSensitivity?: number; voiceSpeed?: number; languageLocked?: boolean; globalNodeSetting?: { condition: string; coolDown?: number; }; toolId?: string; waitForResult?: boolean; speakDuringExecution?: boolean; executionMessage?: { type: "prompt" | "static_text"; text: string; }; transfer?: { destination: { type: "predefined"; number: string; } | { type: "inferred"; prompt: string; }; option: { type: "cold_transfer" | "warm_transfer"; showTransfereeAsCaller?: boolean; optOutHumanDetection?: boolean; enableBridgeAudioCue?: boolean; onHoldMusic?: string; agentDetectionTimeoutMs?: number; agentDetectionPrompt?: string; transferMessage?: { type: "prompt" | "static_text"; text: string; }; privateHandoffMessage?: { type: "prompt" | "static_text"; text: string; }; coldTransferMode?: string; }; ignoreE164Validation: boolean; }; variables?: { name: string; type: "string" | "number" | "boolean" | "enum"; description: string; choices?: string[]; }[]; modelChoice?: { model: components["schemas"]["ModelIdentity"]; credential?: { id: string; version: string; provider: string; }; type: "cascading"; highPriority: boolean; reasoningEffort?: "low" | "medium" | "high"; }; componentId?: string; verification?: { subjectVariable: string; fields: { id: string; expectedVariable: string; privateAliases?: string[]; enabledVariable: string; format: { kind: "digits"; length: number; } | { kind: "date_yyyymmdd"; }; prompt: { en: string; es?: string; }; }[]; required: { kind: "fixed"; count: number; } | { kind: "variable"; name: string; }; timeoutMs: number; lookup?: { toolId: string; fieldId: string; parameter: string; arguments: { parameter: string; variable: string; }[]; }; }; tokenization?: { toolId: string; subjectVariable: string; consentPrompt: { en: string; es?: string; }; timeoutMs: number; fields: { id: string; parameter: string; minDigits: number; maxDigits: number; encoding: "string" | "integer"; minimum?: number; maximum?: number; prompt: { en: string; es?: string; }; }[]; arguments: { parameter: string; source: { kind: "variable"; name: string; } | { kind: "constant"; value: (string | number | boolean) | null; }; }[]; tokenIdPath: string; tokenVariable: string; last4Variable: string; last4Field: string; }; }[]; tools: { id: string; type: "custom"; name: string; description: string; method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; responseVariables: { [key: string]: string; }; responseVariablePolicy?: "required" | "replace_available"; speakAfterExecution?: boolean; }[]; flexMode?: boolean; }[]; defaultDynamicVariables: { [key: string]: string; }; callContextVariables?: string[]; modelChoice?: { model: components["schemas"]["ModelIdentity"]; credential?: { id: string; version: string; provider: string; }; type: "cascading"; highPriority: boolean; reasoningEffort?: "low" | "medium" | "high"; }; toolCallStrictMode: boolean; }; settings: { voiceId?: string; voiceModel?: string; voiceSpeed?: number; voiceTemperature?: number; volume?: number; language?: string | string[]; responsiveness?: number; interruptionSensitivity?: number; enableBackchannel?: boolean; backchannelFrequency?: number; backchannelWords?: string[]; reminderTriggerMs?: number; reminderMaxCount?: number; maxCallDurationMs?: number; endCallAfterSilenceMs?: number; ringDurationMs?: number; beginMessageDelayMs?: number; normalizeForSpeech?: boolean; openerWaitsForCallee?: boolean; voicemail?: { enabled: boolean; detectionTimeoutMs?: number; action?: "hangup" | "leave_message"; message?: { type: "prompt" | "static_text"; text: string; }; }; ambientSound?: string; ambientSoundVolume?: number; boostedKeywords?: string[]; pronunciationDictionary?: { word: string; alphabet: "ipa" | "cmu"; phoneme: string; }[]; denoisingMode?: string; sttMode?: string; allowUserDtmf?: boolean; allowDtmfInterruption?: boolean; userDtmfOptions?: { digitLimit?: number | null; terminationKey?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "*" | "#" | null; timeoutMs?: number; } | null; dataStorageSetting?: "everything" | "everything_except_pii" | "basic_attributes_only"; optInSignedUrl?: boolean; piiConfig?: { mode: "post_call"; categories: ("person_name" | "address" | "email" | "phone_number" | "ssn" | "passport" | "driver_license" | "credit_card" | "bank_account" | "password" | "pin" | "medical_id" | "date_of_birth" | "customer_account_number")[]; }; handbookConfig?: { defaultPersonality?: boolean; conversationalPersonality?: boolean; naturalFillerWords?: boolean; highEmpathy?: boolean; echoVerification?: boolean; natoPhoneticAlphabet?: boolean; speechNormalization?: boolean; smartMatching?: boolean; aiDisclosure?: boolean; scopeBoundaries?: boolean; }; ivr?: { enabled: false; } | { enabled: true; action: "hangup"; detectionWindowMs: 180000; detectionPrompt?: string | null; }; screener?: { action: "hangup"; } | { action: "wait"; waitMs?: number; } | { action: "play_line"; waitMs?: number; line: { en?: string; es?: string; }; } | { action: "treat_as_human"; }; postCallAnalysisModel?: { model: components["schemas"]["ModelIdentity"]; credential?: { id: string; version: string; provider: string; }; }; compliance?: { profile?: "fdcpa"; }; }; analysis: { name: string; type: "string" | "number" | "boolean" | "enum"; description: string; choices?: string[]; examples?: string[]; }[]; providers: { llm: { provider: "openai" | "simulated_openai" | "self_hosted" | "simulated_self_hosted"; model: components["schemas"]["ModelIdentity"]; }; stt: { provider: string; model: string; voiceId?: string; } | null; tts: { provider: string; model: string; voiceId?: string; } | null; }; telephony: { trunkId: string; from?: string; } | null; inbound_context?: { action_id: string; variables: string[]; }; recording: { required: boolean; channels: "dual"; } | null; cloud: { modes: ("task" | "chat" | "background")[]; input_schema: { [key: string]: unknown; }; output_schema: { [key: string]: unknown; }; max_turns: number; idle_timeout_ms: number; deadline_ms: number; } | null; actions: { purpose?: "tokenization"; name: string; description: string; channels: ("cloud" | "phone")[]; method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; url: string; headers?: { [key: string]: string; }; auth: { scheme: "none"; } | { scheme: "bearer" | "basic"; secret_ref: { id: string; version: string; }; } | { scheme: "retell_signature"; secret_ref: { id: string; version: string; }; } | { scheme: "header"; header_name: string; secret_ref: { id: string; version: string; }; }; input_schema: { [key: string]: unknown; }; output_schema: { [key: string]: unknown; }; idempotency: { mode: "effect_key"; } | { mode: "template"; header?: string; template: string; } | { mode: "none_read_only"; }; timeout_ms: number; on_uncertain?: "failure_edge" | "uncertain_edge"; }[]; notifications: { id: string; url: string; secret_ref: { id: string; version: string; }; format: "semantic.v1"; events: ("run.admitted" | "run.ended" | "recording.updated" | "analysis.updated")[]; }[]; knowledge: { document_ids: string[]; } | null; triggers: ({ kind: "schedule"; id: string; cron: string; timezone: string; input: { [key: string]: unknown; }; } | { kind: "event"; id: string; event_type: "run.ended" | "analysis.updated"; source: { agent_id?: string; channel?: "cloud" | "phone" | "web"; dispositions?: string[]; }; input_mapping: { [key: string]: string; }; })[]; layout: components["schemas"]["AgentLayout"]; }; note: string; }>;