import { type AccountStrategy } from "../../../credential-pool/selection-order.ts";
import { SettingsManager } from "../../../settings-manager.ts";
import type { SettingSource } from "./sdk-boundary.ts";
export type AnthropicSubscriptionSystemPromptMode = "preset-append" | "full" | "override";
export type AnthropicSubscriptionResumeMode = "auto" | "off";
export type AnthropicSubscriptionTokenInjection = "oauth-slots" | "config-dir" | "ambient";
/** Who compacts a resident lane: senpi's compaction stack (default) or the Claude Agent SDK's native auto-compact. */
export type AnthropicSubscriptionCompactionOwner = "senpi" | "sdk";
/** The one place the default lives: senpi owns compaction unless `compactionOwner: "sdk"` opts out. */
export declare function resolveCompactionOwner(settings: Pick<AnthropicSubscriptionProviderSettings, "compactionOwner">): AnthropicSubscriptionCompactionOwner;
export interface AnthropicSubscriptionProviderSettings {
    /**
     * Explicit opt-in for the ambient (host Claude CLI) auth lane. Absent means
     * false: a logged-in host CLI alone never makes this provider available,
     * because that would silently spend the user's Claude subscription. Stored
     * accounts and `CLAUDE_CODE_OAUTH_TOKEN*` are themselves explicit opt-ins
     * and stay available without this flag.
     */
    readonly enabled?: boolean;
    readonly appendSystemPrompt?: boolean;
    readonly systemPromptMode?: AnthropicSubscriptionSystemPromptMode;
    readonly systemPromptFile?: string;
    readonly resumeMode?: AnthropicSubscriptionResumeMode;
    readonly settingSources?: SettingSource[];
    readonly strictMcpConfig?: boolean;
    readonly pinnedAccount?: string;
    /** Allow automatic switching to another managed account after failure. Defaults to true. */
    readonly accountFallback?: boolean;
    readonly accountStrategy?: AccountStrategy;
    readonly tokenInjection?: AnthropicSubscriptionTokenInjection;
    readonly compactionOwner?: AnthropicSubscriptionCompactionOwner;
}
export type ResolvedSystemPromptMode = {
    mode: AnthropicSubscriptionSystemPromptMode;
    source: string;
    conflict: boolean;
};
type Environment = Readonly<Record<string, string | undefined>>;
/** Which layer set `resumeMode`: the environment variable, project settings, or global settings. */
export type ResumeModeSource = "env" | "project" | "global";
/** The layer that set `resumeMode`; settings built outside the loader report "global". */
export declare function resumeModeSource(settings: AnthropicSubscriptionProviderSettings): ResumeModeSource;
export declare function resolveSystemPromptMode(settings: AnthropicSubscriptionProviderSettings): ResolvedSystemPromptMode;
/** Load the provider block with env values taking precedence over project and global values. */
export declare function loadAnthropicSubscriptionProviderSettings(settingsManager: SettingsManager, environment?: Environment): AnthropicSubscriptionProviderSettings;
/** Load settings from Senpi's configured global and project settings.json paths. */
export declare function loadAnthropicSubscriptionProviderSettingsFromDisk(sessionCwd: string): AnthropicSubscriptionProviderSettings;
export {};
//# sourceMappingURL=settings.d.ts.map