import type { ResolveSettingsOptions, ResolvedSettings, SettingSource } from "@anthropic-ai/claude-agent-sdk";
import { type AnthropicSubscriptionProviderSettings } from "./settings.ts";
export type ClaudeSettingsEnvResolver = (options: ResolveSettingsOptions) => Promise<ResolvedSettings>;
/**
 * Read the effective `env` block Claude Code will apply from the settings files a query loads (senpi#2988 item 4).
 * Uses the SDK's own settings merge engine, so the files, lookup rules and precedence are the CLI's, not a re-read.
 * Returns undefined when no loaded settings file sets an `env` block, or when the merge fails — the caller then pins
 * as if no settings lifetime existed, instead of failing the turn.
 */
export declare function resolveClaudeSettingsEnv(input: {
    cwd: string;
    settingSources: SettingSource[];
}, resolveSettings?: ClaudeSettingsEnvResolver): Promise<Readonly<Record<string, string>> | undefined>;
/**
 * The settings env for one stream's queries. An explicit `settingSources` list applies to every lane; otherwise only
 * a preset-append ambient attempt loads user/project settings (the same rule `buildAnthropicSubscriptionQueryOptions`
 * uses), so anything else resolves to nothing and no merge runs.
 */
export declare function resolveQuerySettingsEnv(cwd: string, providerSettings: AnthropicSubscriptionProviderSettings): Promise<Readonly<Record<string, string>> | undefined>;
//# sourceMappingURL=claude-settings-env.d.ts.map