import type { SchemaShape } from 'traced-config';
import { type TracedOrigin } from './tracedConfigSchema.js';
export interface ConfigTrace {
    getOrigin(path: string): TracedOrigin;
}
interface LoadConfigTraceOptions {
    configPath: string;
    fileOrigin: 'global' | 'local';
    schema: SchemaShape;
    parseErrorPrefix?: string;
    rootObjectError?: string;
    sanitize?: (value: unknown) => unknown;
}
export declare function loadConfigTrace(options: LoadConfigTraceOptions): {
    parsedConfig: Record<string, unknown>;
    rawConfig: Record<string, unknown>;
    trace: ConfigTrace;
};
export declare function loadGlobalConfigTrace(configPath: string, sanitize: (value: unknown) => unknown): {
    parsedConfig: Record<string, unknown>;
    rawConfig: Record<string, unknown>;
    trace: ConfigTrace;
};
export declare function loadProjectConfigTrace(configPath: string): {
    parsedConfig: Record<string, unknown>;
    rawConfig: Record<string, unknown>;
    trace: ConfigTrace;
};
export {};
//# sourceMappingURL=tracedConfigLoader.d.ts.map