import { E as EnvGraph, e as DotEnvFileDataSource, f as ConfigLoadError, b as SchemaError, c as ValidationError, C as CoercionError, R as ResolutionError } from './env-graph-DgoRWqJl.js';
export { D as Debugger, S as SerializedEnvGraph, d as createDebug } from './env-graph-DgoRWqJl.js';
import { initVarlockEnv } from './runtime/env.js';
export { ENV } from './runtime/env.js';
export { patchGlobalConsole } from './runtime/patch-console.js';
export { patchGlobalServerResponse } from './runtime/patch-server-response.js';
export { patchGlobalResponse } from './runtime/patch-response.js';
import '@env-spec/parser';
import '@env-spec/utils/type-utils';

declare function loadEnvGraph(opts?: {
    basePath?: string;
    /** Entry file path(s) — accepts a single path or array of paths */
    entryFilePaths?: string | Array<string>;
    /** Explicit process.env override values used for config item override precedence */
    overrideValues?: Record<string, string | undefined>;
    /** Explicit process.env values used by builtin var detection */
    processEnvOverride?: Record<string, string | undefined>;
    relativePaths?: Array<string>;
    checkGitIgnored?: boolean;
    excludeDirs?: Array<string>;
    currentEnvFallback?: string;
    clearCache?: boolean;
    skipCache?: boolean;
    afterInit?: (graph: EnvGraph) => Promise<void>;
}): Promise<EnvGraph>;

declare function checkForConfigErrors(envGraph: EnvGraph, opts?: {
    showAll?: boolean;
    /** Log errors to stderr but don't throw — used when the caller will handle errors itself (e.g. json-full output) */
    noThrow?: boolean;
}): void;

declare function loadVarlockEnvGraph(opts?: {
    currentEnvFallback?: string;
    /** Explicit entry file paths from --path flag(s) - overrides package.json config */
    entryFilePaths?: Array<string>;
    /** Clear cache and re-resolve all values */
    clearCache?: boolean;
    /** Skip cache entirely for this invocation */
    skipCache?: boolean;
}): Promise<EnvGraph>;

declare function load(): Promise<void>;
declare function getBuildTimeReplacements(opts?: {
    objectKey?: string;
    includeSensitive?: boolean;
}): Record<string, string>;
declare const internal: {
    EnvGraph: typeof EnvGraph;
    DotEnvFileDataSource: typeof DotEnvFileDataSource;
    loadEnvGraph: typeof loadEnvGraph;
    ConfigLoadError: typeof ConfigLoadError;
    SchemaError: typeof SchemaError;
    ValidationError: typeof ValidationError;
    CoercionError: typeof CoercionError;
    ResolutionError: typeof ResolutionError;
    loadVarlockEnvGraph: typeof loadVarlockEnvGraph;
    checkForConfigErrors: typeof checkForConfigErrors;
    initVarlockEnv: typeof initVarlockEnv;
};

export { getBuildTimeReplacements, internal, load };
