import { type Config } from '../config/schema.js'; import type { ManagedSetupSceneId, UnifiedSetupRun } from './types.js'; export declare const MANAGED_SETUP_SCENES: readonly ManagedSetupSceneId[]; export declare function isManagedSetupScene(value: string): value is ManagedSetupSceneId; export interface UnifiedSetupSceneDeps { getConfig: () => Config | undefined; saveConfig?: (next: Config, expected?: Config) => Promise<{ saved: boolean; error?: string; conflict?: boolean; }>; saveProviderApiKey?: (providerId: string, apiKey: string) => Promise; emitEvent?: (event: string, payload: unknown) => void; } /** * Unified guided setup engine for models, web_search, voice, channels, and computer. * Keeps Tier-3 secrets strictly inside owner-authenticated HTTP modals (`POST /api/setup/:scene`), * never accepting credentials from LLM tool arguments. */ export declare class UnifiedSetupSceneService { private readonly deps; private readonly runs; private readonly order; constructor(deps: UnifiedSetupSceneDeps); private put; private findActive; getOwned(setupId: string, conversationId: string): UnifiedSetupRun; private evaluateScene; inspectScene(scene: ManagedSetupSceneId, context: { conversationId: string; agentId: string; }): Promise<{ ok: boolean; scene: ManagedSetupSceneId; configured: boolean; ready: boolean; blockers: string[]; summary: string; details: Record; settingsPath: string; setup: { id: string; scene: ManagedSetupSceneId; conversationId: string; agentId: string; revision: number; state: import("./types.js").SetupSceneState; resumeObjective?: string; target?: Record; checks: { configured: boolean; verified: boolean; }; missingSteps: string[]; summary: string; interactionPath: string; settingsPath: string; error?: string; createdAt: number; updatedAt: number; } | null; supportedActions: string[]; }>; command(scene: ManagedSetupSceneId, command: string, args: Record, context: { conversationId: string; agentId: string; canConfigure?: boolean; }, dryRun?: boolean): Promise>; /** * Owner-authenticated HTTP endpoint handler for Tier-3 secret/permission submission. * Never callable from LLM tool arguments. */ submitSecureInput(scene: ManagedSetupSceneId, setupId: string, conversationId: string, payload: Record): Promise; private extractTarget; }