import type { Reference } from "@specific/config";
import type { DatabaseInstance } from "./database-manager.js";
export declare class MissingSecretError extends Error {
    secretName: string;
    constructor(secretName: string);
}
export declare function resolveEnvValue(value: string | Reference, databases: Map<string, DatabaseInstance>, secrets: Map<string, string>, servicePort?: number): string;
export declare function resolveEnv(env: Record<string, string | Reference> | undefined, databases: Map<string, DatabaseInstance>, secrets: Map<string, string>, servicePort?: number): Record<string, string>;
/**
 * Resolve environment variables for exec mode.
 * Silently skips port references since there's no service port in exec context.
 */
export declare function resolveEnvForExec(env: Record<string, string | Reference> | undefined, databases: Map<string, DatabaseInstance>, secrets: Map<string, string>): Record<string, string>;
//# sourceMappingURL=env-resolver.d.ts.map