import { Type } from "typebox"; export declare const ApplicationPromotionResultSchema: Type.TObject<{ mutation_id: Type.TString; activation_id: Type.TString; plan_sha256: Type.TString; action: Type.TLiteral<"promote">; replayed: Type.TBoolean; project_ref: Type.TString; application_id: Type.TString; environment_id: Type.TString; }>; export declare const ApplicationPromotionStatusSchema: Type.TObject<{ mutation: Type.TUnknown; promotion: Type.TObject<{ phase: Type.TUnion<[Type.TLiteral<"prepared">, Type.TLiteral<"transferring">, Type.TLiteral<"migrating">, Type.TLiteral<"activating">, Type.TLiteral<"verifying">, Type.TNull]>; plan_sha256: Type.TUnion<[Type.TString, Type.TNull]>; activation_id: Type.TUnion<[Type.TString, Type.TNull]>; release_id: Type.TUnion<[Type.TString, Type.TNull]>; configuration_id: Type.TUnion<[Type.TString, Type.TNull]>; backup_id: Type.TUnion<[Type.TString, Type.TNull]>; data_recovery: Type.TLiteral<"separate-required">; }>; project_ref: Type.TString; application_id: Type.TString; environment_id: Type.TString; }>; export declare const ApplicationPreviewReceiptSchema: Type.TObject<{ preview_id: Type.TString; release_id: Type.TString; expires_at: Type.TUnion<[Type.TString, Type.TNull]>; status: Type.TUnion<[Type.TLiteral<"planned">, Type.TLiteral<"provisioning">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"cleaned">]>; resources: Type.TObject<{ build_artifact: Type.TObject<{ status: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"cleaned">]>; release_id: Type.TString; }>; database_branch: Type.TObject<{ status: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"cleaned">]>; branch_ref: Type.TString; data_mode: Type.TUnion<[Type.TLiteral<"schema_only">, Type.TLiteral<"full_clone">]>; }>; queue_namespace: Type.TObject<{ status: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"cleaned">]>; namespace: Type.TString; }>; storage_namespace: Type.TObject<{ status: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"cleaned">]>; namespace: Type.TString; }>; test_secret: Type.TObject<{ status: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"cleaned">]>; name: Type.TString; value_issued: Type.TLiteral; }>; configuration_revision: Type.TObject<{ status: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"cleaned">]>; configuration_id: Type.TUnion<[Type.TString, Type.TNull]>; }>; application_activation: Type.TObject<{ status: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"cleaned">]>; activation_id: Type.TUnion<[Type.TString, Type.TNull]>; }>; smoke_test: Type.TObject<{ status: Type.TUnion<[Type.TLiteral<"pending">, Type.TLiteral<"ready">, Type.TLiteral<"failed">, Type.TLiteral<"cleaned">]>; checks: Type.TArray; passed: Type.TArray; failed: Type.TArray; }>; }>; cleanup: Type.TObject<{ required: Type.TBoolean; completed: Type.TBoolean; error: Type.TUnion<[Type.TString, Type.TNull]>; }>; branch_name: Type.TOptional; queue_name: Type.TOptional; test_secret_name: Type.TOptional; source_configuration_id: Type.TOptional>; created_at: Type.TOptional; updated_at: Type.TOptional; project_ref: Type.TString; application_id: Type.TString; environment_id: Type.TString; schema: Type.TLiteral<"supacloud.application-preview.v1">; }>; export interface ApplicationWorkflowScope { project_ref: string; application_id: string; environment_id: string; } export declare function parsePromotionStatus(value: unknown, identity: ApplicationWorkflowScope & { mutation_id: string; }): { mutation: import("../mutation-protocol").SafeMutationStatus; project_ref: string; application_id: string; environment_id: string; promotion: { backup_id: string | null; activation_id: string | null; release_id: string | null; configuration_id: string | null; plan_sha256: string | null; data_recovery: "separate-required"; phase: "prepared" | "transferring" | "migrating" | "activating" | "verifying" | null; }; }; export declare function parsePreviewReceipt(value: unknown, identity: ApplicationWorkflowScope & { preview_id?: string; release_id?: string; branch_ref?: string; data_mode?: string; configuration_id?: string; }): { created_at?: string | undefined; updated_at?: string | undefined; branch_name?: string | undefined; queue_name?: string | undefined; test_secret_name?: string | undefined; source_configuration_id?: string | null | undefined; project_ref: string; application_id: string; environment_id: string; status: "ready" | "failed" | "cleaned" | "planned" | "provisioning"; schema: "supacloud.application-preview.v1"; resources: { build_artifact: { status: "pending" | "ready" | "failed" | "cleaned"; release_id: string; }; database_branch: { status: "pending" | "ready" | "failed" | "cleaned"; branch_ref: string; data_mode: "schema_only" | "full_clone"; }; queue_namespace: { status: "pending" | "ready" | "failed" | "cleaned"; namespace: string; }; storage_namespace: { status: "pending" | "ready" | "failed" | "cleaned"; namespace: string; }; test_secret: { name: string; status: "pending" | "ready" | "failed" | "cleaned"; value_issued: false; }; configuration_revision: { status: "pending" | "ready" | "failed" | "cleaned"; configuration_id: string | null; }; application_activation: { status: "pending" | "ready" | "failed" | "cleaned"; activation_id: string | null; }; smoke_test: { status: "pending" | "ready" | "failed" | "cleaned"; checks: string[]; failed: string[]; passed: string[]; }; }; release_id: string; preview_id: string; expires_at: string | null; cleanup: { required: boolean; error: string | null; completed: boolean; }; }; export declare function parsePreviewList(value: unknown, identity: ApplicationWorkflowScope): { project_ref: string; application_id: string; environment_id: string; previews: { created_at?: string | undefined; updated_at?: string | undefined; branch_name?: string | undefined; queue_name?: string | undefined; test_secret_name?: string | undefined; source_configuration_id?: string | null | undefined; project_ref: string; application_id: string; environment_id: string; status: "ready" | "failed" | "cleaned" | "planned" | "provisioning"; schema: "supacloud.application-preview.v1"; resources: { build_artifact: { status: "pending" | "ready" | "failed" | "cleaned"; release_id: string; }; database_branch: { status: "pending" | "ready" | "failed" | "cleaned"; branch_ref: string; data_mode: "schema_only" | "full_clone"; }; queue_namespace: { status: "pending" | "ready" | "failed" | "cleaned"; namespace: string; }; storage_namespace: { status: "pending" | "ready" | "failed" | "cleaned"; namespace: string; }; test_secret: { name: string; status: "pending" | "ready" | "failed" | "cleaned"; value_issued: false; }; configuration_revision: { status: "pending" | "ready" | "failed" | "cleaned"; configuration_id: string | null; }; application_activation: { status: "pending" | "ready" | "failed" | "cleaned"; activation_id: string | null; }; smoke_test: { status: "pending" | "ready" | "failed" | "cleaned"; checks: string[]; failed: string[]; passed: string[]; }; }; release_id: string; preview_id: string; expires_at: string | null; cleanup: { required: boolean; error: string | null; completed: boolean; }; }[]; };