#!/usr/bin/env node export type SetupMode = "global" | "project"; export interface SetupOptions { mode?: SetupMode; cwd?: string; configPath?: string; pluginSpec?: string; cacheRepair?: boolean; } interface CacheRepairOptions { cacheHome?: string; packageVersion?: string; now?: () => Date; } interface CacheRepairResult { cachePath: string; movedTo?: string; repaired: boolean; } export declare function patchConfigText(input: string, pluginSpec?: string, replacePluginSpec?: boolean): string; export declare function repairStaleOpenCodeLatestCache(options?: CacheRepairOptions): Promise; export declare function setupOpenCodeConfig(options?: SetupOptions): Promise; export declare function parseArgs(argv: string[]): SetupOptions; export declare function isDirectExecution(moduleUrl?: string, argvPath?: string): boolean; export {}; //# sourceMappingURL=setup.d.ts.map