import type { McpConfigPersistenceStrategy } from './mcp-config-metadata.js'; /** The exact source document an edit was derived from. */ declare const MCP_CONFIG_SOURCE_SNAPSHOT: unique symbol; export interface McpConfigSourceSnapshot { readonly [MCP_CONFIG_SOURCE_SNAPSHOT]: true; readonly destination: string; readonly content: string | undefined; /** Revalidate every selected path binding and the source bytes. */ assertCurrent(): void; } /** Resolve existing links, including parents of a first-time config path. */ export declare function resolveMcpConfigDestination(configPath: string): string; /** Capture path bindings and bytes as one required transaction snapshot. */ export declare function snapshotMcpConfigSource(configPath: string, paths: readonly Readonly<{ configPath: string; displayPath: string; }>[]): McpConfigSourceSnapshot; /** Replace a complete client config without exposing a truncated file to readers. */ export declare function writeMcpConfigAtomic(configPath: string, content: string, persistence: McpConfigPersistenceStrategy, expectedSource: McpConfigSourceSnapshot): void; export {}; //# sourceMappingURL=mcp-config-file.d.ts.map