import type { ToolContext, ToolDefinition } from "@opencode-ai/plugin"; import type { PluginContext } from "../types.js"; export type BashWaitPattern = { kind: "substring"; value: string; } | { kind: "regex"; source: string; }; export type BashStatusWaited = { reason: "matched" | "exited" | "timeout" | "user_message" | "unavailable"; elapsed_ms: number; match?: string; match_offset?: number; match_stream?: "stdout" | "stderr"; }; type BashStatusWithWait = Record & { waited?: BashStatusWaited; }; export declare function createBashWatchTool(ctx: PluginContext): ToolDefinition; export declare function waitForBashStatus(ctx: PluginContext, runtime: ToolContext, taskId: string, outputMode: string | undefined, waitFor: BashWaitPattern | undefined, effectiveWaitMs: number): Promise; export declare function parseWaitPattern(value: unknown): BashWaitPattern | undefined; export declare function __trimWaitScanBufferForTests(text: string, baseOffset: number, pattern: BashWaitPattern): { text: string; baseOffset: number; }; export {}; //# sourceMappingURL=bash_watch.d.ts.map