type Options = { home?: string; fetch?: typeof fetch; timeoutMs?: number; }; /** OpenCode 1.x plugin: inject context and capture prompts, tool use and session end. */ export declare function createOpenCodePlugin(input: { directory: string; }, options?: Options): { 'experimental.chat.system.transform': (request: { sessionID?: string; }, output: { system: string[]; }) => Promise; 'chat.message': (_input: { sessionID?: string; }, output: { parts?: Array<{ type?: string; text?: string; }>; }) => Promise; 'tool.execute.before': (toolInput: { tool?: string; sessionID?: string; }, output: { args?: Record; }) => Promise; 'tool.execute.after': (toolInput: { tool?: string; sessionID?: string; callID?: string; }, output: { args?: Record; output?: unknown; }) => Promise; event: ({ event }: { event?: { type?: string; properties?: Record; }; }) => Promise; }; export {};