import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"; import { QueueController } from "./headless.ts"; import { type QueueReply } from "./protocol.ts"; export interface QueueControlEnvelope { version: 1; sessionId: string; request: unknown; claim(): boolean; respond(reply: QueueReply): void; } /** Explicitly register against an owned controller; importing this module installs nothing. */ export declare function registerQueueControlBridge(pi: Pick, controller: QueueController): () => void; /** RPC uses Pi's supported prompt/notification subprotocol, never custom stdout records. * Register only in an explicitly owned headless extension. Native input remains untouched. */ export declare function registerQueueControlCommand(pi: Pick, controller: QueueController): void;