import type { StartupConfigWizardResult } from "./startup-config-wizard.js";
export interface CliCommandResult {
    handled: boolean;
    exitCode: number;
}
export interface CommandRunResult {
    status: number | null;
    error?: Error;
}
export interface CliCommandOptions {
    argv?: string[];
    packageRoot?: string;
    stdout?: (message: string) => void;
    stderr?: (message: string) => void;
    runCommand?: (command: string, args: string[]) => CommandRunResult;
    configure?: () => Promise<StartupConfigWizardResult>;
    platform?: NodeJS.Platform;
    serviceUnitPath?: string;
    executablePath?: string;
}
export declare function readPackageVersion(packageRoot?: string): string;
/**
 * 生成 systemd unit 内容，主流程是用当前 Node 可执行文件启动当前 CLI 入口。
 */
export declare function createSystemdUnitContent(executablePath: string): string;
export declare function handleCliCommand(options?: CliCommandOptions): Promise<CliCommandResult>;
//# sourceMappingURL=cli-commands.d.ts.map