import type { AftTransportPool } from "@cortexkit/aft-bridge"; import type { AftConfig } from "./config.js"; type ActiveBridgePool = Pick; export declare const BASH_WAIT_DETACH_MAGIC_KEYWORD = "&detach"; /** Return the user-entered text parts from OpenCode's chat.message output. */ export declare function extractUserMessageText(output: unknown): string; /** Strip control tokens from mutable OpenCode text parts before model delivery. */ export declare function stripUserMessageDetachKeyword(output: unknown): string; /** * Decide whether a user message should signal an active wait:true bash call. * The keyword is checked before the host hook strips it from mutable text parts. */ export declare function shouldDetachBashWaitOnUserMessage(config: AftConfig, messageText: string): boolean; export declare function signalBashWaitDetachForProject(pool: ActiveBridgePool, projectRoot: string, sessionID: string | undefined): Promise; export {}; //# sourceMappingURL=bash-wait-detach.d.ts.map