import type { zmeelConfig } from "@zmeel/shared";
export declare function applyRuntimePortSelectionToConfig(config: zmeelConfig, input: {
    serverPort: number;
    databasePort?: number | null;
    allowServerPortWrite?: boolean;
    allowDatabasePortWrite?: boolean;
}): {
    config: zmeelConfig;
    changed: boolean;
};
export declare function maybeRepairLegacyWorktreeConfigAndEnvFiles(): {
    repairedConfig: boolean;
    repairedEnv: boolean;
};
export declare function maybePersistWorktreeRuntimePorts(input: {
    serverPort: number;
    databasePort?: number | null;
}): void;
//# sourceMappingURL=worktree-config.d.ts.map