/** Fixed host service configuration used by the native supervisor. */ export type DeploymentPortAllocation = { mode: 'fixed'; ports: readonly number[]; } | { mode: 'dynamic'; from: number; to: number; }; export interface DeploymentService { strategy: 'direct' | 'blue-green'; /** Stable loopback ingress used by Tunnel/nginx consumers. */ publicPort: number; /** One application port for direct, two for blue-green. */ applicationPorts: DeploymentPortAllocation; /** Exact argv. `${FZ_APP_PORT}` and `${FZ_RELEASE}` are materialized by the Agent. */ command: readonly string[]; healthPath: string; /** Optional node-wide active connection ceiling enforced by nginx with HTTP 503. */ maxConnections?: number; websocket?: boolean; drainMs?: number; } export declare class DefinitionError extends Error { constructor(message: string); } export declare function validateDeploymentService(value: unknown, where?: string): DeploymentService;