export type TerminalPilotCliRunResult = {
    exitCode: number;
    stdout: string;
    stderr: string;
};
export type TerminalPilotCliJsonRunResult<T> = {
    exitCode: number;
    stdout: T;
    stderr: string;
};
export declare function createTerminalPilotCliRepl(): {
    run(args: string[]): Promise<TerminalPilotCliRunResult>;
    runJson<T>(args: string[]): Promise<TerminalPilotCliJsonRunResult<T>>;
    close(): Promise<void>;
};
