import type { Stats } from 'node:fs'; export function assertNoSymlinkParents(file: string, configRoot?: string): Promise; export function assertConfigDestination(file: string, projectRoot?: string): Promise; export function isUserMcpScope(provider: string, scope?: string): boolean; export function isPathInsideDir(file: string, dir: string): boolean; export function assertSupportedScope(provider: string, scope: string | undefined, configPath: string, projectDir?: string): void; export function classifyMcpDestination(provider: string, scope: string | undefined, configPath: string, projectDir?: string): { userScope: boolean; projectRoot: string | undefined }; export function projectCredentialRemedy(provider: string, projectDir?: string): string; export function assertProjectCredentials(servers: Array<{ name: string; url?: string; args?: string[]; env?: Record; headers?: Record; auth?: Record; oauth?: Record }>, configPath: string, remedy?: string): void; export function assertConfigObject(config: unknown, serversKey: string): void; export interface ConfigWriteOptions { userScope?: boolean; rejectSymlinkParents?: boolean; symlinkRoot?: string; projectRoot?: string; newFileMode?: number; mode?: number; } export interface ConfigWrite { file: string; content: string | Uint8Array; options?: ConfigWriteOptions; } export function writeConfigAtomic(file: string, content: string | Uint8Array, options?: ConfigWriteOptions): Promise; export function canonicalConfigPath(file: string): Promise; export function prepareConfigWrite(file: string, options?: ConfigWriteOptions): Promise; export function writeConfigTransaction(writes: ConfigWrite[]): Promise;