import type { OptionValues } from "commander";
import type { CliConfig, CommandContext, ParsedArgs } from "../types.js";
export type SetExitCode = (exitCode: number) => void;
export interface Prompter {
    ask(question: string): Promise<string>;
    close(): void;
}
export declare function createPrompter(context: CommandContext): Prompter;
export declare function loadCliState(context: CommandContext): Promise<{
    configPath: string;
    config: CliConfig;
}>;
export declare function parsedArgs(command: string, subject: string | undefined, positionals: string[], options: OptionValues): ParsedArgs;
//# sourceMappingURL=shared.d.ts.map