export declare function setConfigPath(path: string | null): void; export declare function clearKeyCacheForTesting(): void; /** * Schedule a process exit so an MCP client can respawn the server and pick up * fresh credentials from disk. Only relevant for stdio-mode servers whose * client supervises restart. HTTP-mode servers update credentials in-process * and MUST NOT call this — an exit mid-OAuth-device-code flow kills the user's * verification window. Skipped under vitest (NODE_ENV=test) and when * MCP_NO_RELOAD is set. */ export declare function scheduleReloadExit(): void; export declare function readConfig(serverName: string): Promise | null>; export declare function writeConfig(serverName: string, config: Record): Promise; export declare function deleteConfig(serverName: string): Promise; /** * Metadata flag set by `markSetupComplete` after a successful relay-form * submission (POST /authorize). `runHttpServer`/`isSchemaComplete` read this * to distinguish "user has submitted the form" from "config.enc has values * written by a peer-share or partial bootstrap path". Lives alongside the * user's normal credential keys in the same per-server config dict. */ export declare const SETUP_COMPLETE_KEY = "_setup_complete"; /** * Set the `_setup_complete` flag in `serverName`'s config. Idempotent. * Creates a new entry with just the flag if no prior config exists (useful * for all-optional schemas where the user may submit an empty form). * * Strict equality semantics in `isSchemaComplete` rely on this writing the * literal string `"true"`. */ export declare function markSetupComplete(serverName: string): Promise; export declare function listConfigs(): Promise; export declare function exportConfig(passphrase: string): Promise; export declare function importConfig(passphrase: string, data: Buffer): Promise; //# sourceMappingURL=config-file.d.ts.map