import { z } from "zod"; /** Maximum combined byte size of docker_compose_file + pre_launch_script (200KB) */ export declare const MAX_COMPOSE_PAYLOAD_BYTES: number; /** * Validate that combined byte size of docker_compose_file and pre_launch_script * does not exceed MAX_COMPOSE_PAYLOAD_BYTES. */ export declare function validateComposePayloadSize(dockerComposeFile: string | undefined, preLaunchScript: string | undefined, ctx: z.RefinementCtx): void; /** * Gateway port policy (dstack >= 0.5.9): which guest ports the gateway forwards, * and whether each one uses the PROXY protocol. Omitted fields take the * backend defaults: no ports, restrict_mode false, pp false. */ export declare const PortPolicySchema: z.ZodObject<{ ports: z.ZodOptional; }, z.core.$strip>>>; restrict_mode: z.ZodOptional; }, z.core.$strip>; /** * Guest-enforced GPU policy (`requirements.gpu_policy`). Setting or changing it * needs a feature flag on create; the unified PATCH keeps the stored value. */ export declare const GpuPolicySchema: z.ZodObject<{ allow_debug: z.ZodOptional; allow_devtools: z.ZodOptional; allow_insecure_boot: z.ZodOptional; attest_gpu: z.ZodOptional; rego: z.ZodOptional>; }, z.core.$loose>; /** * Guest requirements (dstack >= 0.6.0). Only the keys that are present are * measured: an explicit default value and an absent key hash differently. */ export declare const ComposeRequirementsSchema: z.ZodObject<{ ephemeral_data_disk: z.ZodOptional; gpu_policy: z.ZodOptional; allow_devtools: z.ZodOptional; allow_insecure_boot: z.ZodOptional; attest_gpu: z.ZodOptional; rego: z.ZodOptional>; }, z.core.$loose>>; health_check: z.ZodOptional; health_status_file: z.ZodOptional; launch_token_hash: z.ZodOptional; platforms: z.ZodOptional>; tdx_measure_acpi_tables: z.ZodOptional; }, z.core.$loose>; export type ComposeRequirements = z.infer; /** Read-only dm-verity volume (dstack >= 0.6.0). */ export declare const VerityVolumeSchema: z.ZodObject<{ source: z.ZodString; target: z.ZodString; verity_root: z.ZodString; }, z.core.$strip>; export declare const ComposeRunnerSchema: z.ZodEnum<{ "docker-compose": "docker-compose"; bash: "bash"; "nerdctl-compose": "nerdctl-compose"; }>; export type ComposeRunner = z.infer; /** Platform init script slugs, in Phala Cloud's fixed run order. */ export declare const InitScriptSlugSchema: z.ZodEnum<{ docker_cleanup: "docker_cleanup"; env_merge: "env_merge"; }>; export type InitScriptSlug = z.infer; export declare const LooseAppComposeSchema: z.ZodObject<{ allowed_envs: z.ZodOptional>; docker_compose_file: z.ZodOptional; bash_script: z.ZodOptional>; features: z.ZodOptional>; name: z.ZodOptional; manifest_version: z.ZodOptional>; runner: z.ZodOptional; kms_enabled: z.ZodOptional; gateway_enabled: z.ZodOptional; tproxy_enabled: z.ZodOptional; local_key_provider_enabled: z.ZodOptional; key_provider: z.ZodOptional>; key_provider_id: z.ZodOptional; public_logs: z.ZodOptional; public_sysinfo: z.ZodOptional; public_tcbinfo: z.ZodOptional; no_instance_id: z.ZodOptional; secure_time: z.ZodOptional; port_policy: z.ZodOptional; }, z.core.$strip>>>; restrict_mode: z.ZodOptional; }, z.core.$strip>>; storage_fs: z.ZodOptional>; swap_size: z.ZodOptional; pre_launch_script: z.ZodOptional; env_pubkey: z.ZodOptional; salt: z.ZodNullable>; requirements: z.ZodOptional; gpu_policy: z.ZodOptional; allow_devtools: z.ZodOptional; allow_insecure_boot: z.ZodOptional; attest_gpu: z.ZodOptional; rego: z.ZodOptional>; }, z.core.$loose>>; health_check: z.ZodOptional; health_status_file: z.ZodOptional; launch_token_hash: z.ZodOptional; platforms: z.ZodOptional>; tdx_measure_acpi_tables: z.ZodOptional; }, z.core.$loose>>>; storage_discard: z.ZodOptional>; event_log_version: z.ZodOptional, z.ZodLiteral<2>]>>>; snapshotter: z.ZodOptional>>; verity_volumes: z.ZodOptional>>>; init_script: z.ZodOptional]>>; }, z.core.$loose>; export type LooseAppCompose = z.infer;