export interface CursorCliValueFlagSpec { [key: string]: unknown; names: readonly string[]; takesValue?: true; repeat?: boolean; allowDashValue?: boolean; assign?: (value: string, flagName: string) => TValue; } export interface CursorCliBooleanFlagSpec { [key: string]: unknown; names: readonly string[]; takesValue: false; repeat?: boolean; assign?: (value: true, flagName: string) => TValue; } export type CursorCliFlagSpec = CursorCliValueFlagSpec | CursorCliBooleanFlagSpec; export type CursorCliFlagSpecMap> = { [K in keyof TArgs]?: CursorCliFlagSpec; }; export type ParsedCursorCliArgs> = TDefaults & { help: boolean }; export declare function readArgvValue( argv: readonly string[], index: number, flagName: string, fail: (message: string) => never, options?: { allowDashValue?: boolean }, ): string; export declare function parseArgv>( argv: readonly string[], options: { defaults: TDefaults; flags: CursorCliFlagSpecMap; fail: (message: string) => never }, ): ParsedCursorCliArgs; export declare function defaultSettingSourcesFromEnv(env?: NodeJS.ProcessEnv): string[]; export declare function defaultApiKeyFromEnv(env?: NodeJS.ProcessEnv): string | undefined; export declare function readArgvApiKey(argv: readonly string[]): string | undefined; export declare function apiKeySecretsFromProcess( argv?: readonly string[], env?: NodeJS.ProcessEnv, ): Array; export declare function requireApiKey( args: { apiKey?: string }, env: NodeJS.ProcessEnv, fail: (message: string) => never, ): string; export declare function defaultTimestampedDir(prefix: string, baseDir?: string): string; export declare const commonProbePathFlag: (key: TKey) => CursorCliValueFlagSpec; export declare const commonProbeStringFlag: (key: TKey) => CursorCliValueFlagSpec; export declare const commonBooleanFlag: (...names: string[]) => CursorCliBooleanFlagSpec; export declare const commonRepeatStringFlag: (...names: string[]) => CursorCliValueFlagSpec; export declare const commonProbeFlags: { readonly cwd: CursorCliValueFlagSpec; readonly model: CursorCliValueFlagSpec; readonly prompt: CursorCliValueFlagSpec; readonly out: CursorCliValueFlagSpec; readonly sessionDir: CursorCliValueFlagSpec; readonly promptFile: CursorCliValueFlagSpec; readonly apiKey: CursorCliValueFlagSpec; readonly settingSources: CursorCliValueFlagSpec; };