import type { PluginRuntimeState } from '../runtime/application/hi-tool-surface.js'; import type { HostPort } from '../runtime/host/port.js'; import type { createRuntimeServices } from '../runtime/application/runtime-services.js'; import type { ProjectAuthorityStore } from '../runtime/safety/project-authority.js'; import type { RuntimeEventController } from '../runtime/application/runtime-event-controller.js'; export declare function createOpenCodeHooks(input: { state: PluginRuntimeState; host: HostPort; services: ReturnType; projectRoot: string; workingDirectory?: string; packagedSkillsDir: string; projectAuthority: ProjectAuthorityStore; toolSurface: Record; reconfigureToolSurface: () => void; eventController: RuntimeEventController; instanceLease: { release: () => void; }; }): { name: string; tool: Record; config: (opencodeConfig: Record) => Promise; 'chat.message': (input: any, output: any) => Promise; 'experimental.chat.messages.transform': (input: any, output: any) => Promise; 'experimental.chat.system.transform': (input: any, output: any) => Promise; 'experimental.text.complete': (input: any, output: any) => Promise; 'experimental.session.compacting': (input: any, output: any) => Promise; 'tool.execute.before': (input: any, output: any) => Promise; 'tool.execute.after': (input: any, output: any) => Promise; dispose: () => Promise; event: (input: any) => Promise; };