/**
 * console-query — single-turn Claude call for the ConsoleView.
 *
 * Uses the global agent (getAgent) so all calls share the same initialized
 * SDK config (gateway URL, model, env) rather than making raw fetch calls.
 */
import type { WizardSession } from './wizard-session.js';
export type ConsoleCredentials = {
    kind: 'gateway';
    baseUrl: string;
    apiKey: string;
} | {
    kind: 'direct';
    apiKey: string;
} | {
    kind: 'none';
};
/** Resolve credentials from session + env, in priority order. */
export declare function resolveConsoleCredentials(session: WizardSession): ConsoleCredentials;
/** Build a compact plain-text summary of the current session state for the system prompt. */
export declare function buildSessionContext(session: WizardSession): string;
export interface ConversationTurn {
    role: 'user' | 'assistant';
    content: string;
}
/** Send a message to Claude with optional conversation history and return the text response. */
export declare function queryConsole(userMessage: string, sessionContext: string, creds: ConsoleCredentials, history?: ConversationTurn[]): Promise<string>;
