import type { KlawConfig } from "./types.js"; export declare function createMergePatch(base: unknown, target: unknown): unknown; export declare function projectSourceOntoRuntimeShape(source: unknown, runtime: unknown): unknown; export declare function injectExplicitlySetPaths(params: { valueSource: unknown; persistedCandidate: unknown; explicitSetPaths?: readonly (readonly string[])[]; rootAuthoredConfig?: unknown; }): unknown; export declare function resolvePersistCandidateForWrite(params: { runtimeConfig: unknown; sourceConfig: unknown; nextConfig: unknown; rootAuthoredConfig?: unknown; unsetPaths?: readonly string[][]; explicitSetPaths?: readonly (readonly string[])[]; explicitSetValueSource?: unknown; }): unknown; export declare function formatConfigValidationFailure(pathLabel: string, issueMessage: string): string; export declare function unsetPathForWrite(root: KlawConfig, pathSegments: string[]): { changed: boolean; next: KlawConfig; }; export declare function applyUnsetPathsForWrite(root: KlawConfig, unsetPaths: readonly string[][] | undefined): KlawConfig; export declare function resolveManagedUnsetPathsForWrite(unsetPaths: readonly string[][] | undefined): string[][]; export declare function collectChangedPaths(base: unknown, target: unknown, path: string, output: Set): void; export declare function restoreEnvRefsFromMap(value: unknown, path: string, envRefMap: Map, changedPaths: Set): unknown; export declare function resolveWriteEnvSnapshotForPath(params: { actualConfigPath: string; expectedConfigPath?: string; envSnapshotForRestore?: Record; }): Record | undefined;