/** The framework-free host surface and the composition root: construct from the * compiled agent, one chat entry, whole typed turn record out. EngineConfig is a * CLOSED key set — no index signature, no options object, no field through which * governance weakens. */ import type { ChatOpts, GuardCensus, Question, TurnRecord, TurnReturned } from '../contract/vocabulary.js'; import type { ToolPort } from '../contract/ports.js'; import type { CompiledAgent } from '../cards/cards.js'; import type { ModelSeat } from './model-seat.js'; export interface EngineConfig { readonly compiled: CompiledAgent; readonly toolPort: ToolPort; readonly seat: ModelSeat; /** The consent clock; injectable so a test can age a code. */ readonly now?: () => number; } export declare class Engine { private readonly deps; private readonly rulebook; private readonly sessions; private readonly now; private constructor(); static create(cfg: EngineConfig): Engine; /** Rejects with TurnFailure; a failed turn seals nothing. The seat reroutes * between attempts only — the failed attempt ends before the cursor moves. * With ChatOpts the turn arrives routed: `before` seeds what other desks said, * `returnable` opens the return door, and a turn that returns answers with the * reason instead of a record — sealing nothing either. */ chat(sessionId: string, text: string): Promise; chat(sessionId: string, text: string, opts: ChatOpts): Promise; /** The Rulebook's own arrays — the list IS the code. */ guards(): GuardCensus; /** Deny-by-default exclusions; SurfaceGate is their producer. */ excluded(): readonly string[]; /** The open consent questions of one session — what a bare code arriving as a * whole message may be answering. Empty for a session that never spoke. */ openQuestions(sessionId: string): readonly Question[]; endSession(sessionId: string): void; } //# sourceMappingURL=engine.d.ts.map