/**
 * Install Plan Builder - Build gateway installation configuration
 *
 * Aligned with OpenClaw: adds XOPC_SERVICE_VERSION, StandardOut/ErrorPath,
 * supports binary runtime detection, and --foreground arg passing.
 */
import type { GatewayServiceInstallArgs, GatewayServiceEnv } from './types.js';
export interface InstallPlan {
    programArguments: string[];
    workingDirectory: string;
    environment: Record<string, string>;
    description: string;
}
export declare function buildGatewayInstallPlan(params: {
    port: number;
    bind?: import('../config/schema.js').GatewayBindMode;
    token?: string;
    env?: GatewayServiceEnv;
    runtime?: 'node' | 'binary';
    version?: string;
}): InstallPlan;
export declare function buildGatewayInstallArgs(params: {
    port: number;
    bind?: import('../config/schema.js').GatewayBindMode;
    token?: string;
    env?: GatewayServiceEnv;
    runtime?: 'node' | 'binary';
    version?: string;
}): GatewayServiceInstallArgs;
/** Check if the program in an install plan still exists on disk */
export declare function validateInstallPlanProgram(programArguments: string[]): boolean;
