import type { AgentSession } from "../../core/agent-session.ts";
import type { RegisterControlEndpointOptions, SessionControlDrainResult, SessionControlWakeReason } from "../../core/extensions/types.ts";
import type { TuiControlSurface } from "./session-control-commands.ts";
import type { ControlFeed } from "./session-control-feed.ts";
import { type TuiRegistryEntry } from "./session-control-registry.ts";
import type { ControlServer } from "./session-control-server.ts";
import type { TerminalMcpPresenter } from "./terminal-presenter-surface.ts";
import { type WakeScheduler } from "./session-control-wake.ts";
export interface TuiControlContext {
    readonly session: AgentSession;
    readonly agentDir: string;
    readonly surface: TuiControlSurface;
    readonly editorRevision: () => number;
    /** The terminal's own MCP form presenter, present only when enforcement is on (D11 S3-6b). */
    readonly mcpPresenter?: TerminalMcpPresenter;
}
export interface ActiveControlEndpoint {
    readonly socket: string;
    wake(reason: SessionControlWakeReason): void;
    noteState(): void;
    noteQuestions(): void;
    dispose(): Promise<void>;
}
export interface ActivationParts {
    readonly context: TuiControlContext;
    readonly options: RegisterControlEndpointOptions;
    readonly entry: TuiRegistryEntry;
    readonly server: ControlServer;
    readonly scheduler: WakeScheduler;
    readonly feed: ControlFeed;
    readonly stopInbox: () => void;
    readonly wake: (reason: SessionControlWakeReason) => Promise<SessionControlDrainResult>;
}
export declare function activateControlEndpoint(parts: ActivationParts): ActiveControlEndpoint;
//# sourceMappingURL=session-control-lifecycle.d.ts.map