import type { SessionConfigOption } from '@agentclientprotocol/sdk';
import type { UiAgentConfigOptions, UiAgentSettings } from '@histoire/shared';
import type { createAgentRuntime } from './agent-runtime.js';
/** Public choices omit raw SDK metadata and unrelated configuration categories. */
export declare function projectAgentConfig(agentId: string, options: SessionConfigOption[], warning?: string): UiAgentConfigOptions;
/** Session option fields and the ACP categories they map to, applied in order. */
declare const FIELDS: readonly [readonly ['model', 'model'], readonly ['effort', 'thought_level'], readonly ['mode', 'mode']];
/** Values chosen for one session, keyed by option field. */
export type SessionConfigValues = Partial<Record<typeof FIELDS[number][0], string>>;
/** Apply model first so dependent effort choices come from accepted model response; unchanged values send nothing. */
export declare function applySessionConfig(runtime: ReturnType<typeof createAgentRuntime>, sessionId: string, values: SessionConfigValues, initial: SessionConfigOption[], timeout: number, isOwned: () => boolean): Promise<{
    options: SessionConfigOption[];
    warning: string;
}>;
/** New sessions take per-comment choices first, then preset defaults. */
export declare function applyAgentSessionDefaults(runtime: ReturnType<typeof createAgentRuntime>, sessionId: string, preset: UiAgentSettings['presets'][number], initial: SessionConfigOption[], timeout: number, isOwned: () => boolean, overrides?: SessionConfigValues): Promise<{
    options: SessionConfigOption[];
    warning: string;
}>;
export {};
//# sourceMappingURL=session-config.d.ts.map