import type { UpdateChannel } from './update-channels.js';
export type AutoUpdateResult = {
    ok: boolean;
    exitCode: number | null;
    reason?: string;
    stdout?: string;
    stderr?: string;
};
export declare function runAutoUpdateCommand(params: {
    channel: UpdateChannel;
    root?: string | null;
    timeoutMs?: number;
}): Promise<AutoUpdateResult>;
export declare function runAutoUpdateCommandWithProgress(params: {
    channel: UpdateChannel;
    root?: string | null;
    timeoutMs?: number;
    onProgress?: (line: string, source: 'stdout' | 'stderr') => void | Promise<void>;
}): Promise<AutoUpdateResult>;
