import type { ExtensionHookRunner } from '../../extensions/index.js'; import type { ExtensionRegistry } from '../../extensions/types/index.js'; import { type ToolExecutorConfig } from '../tools/executor.js'; import type { ExternalToolDescriptor, ExternalToolExecutionContext, ExternalToolProvider, ExternalToolSearchHit } from './types.js'; export interface ExtensionToolProviderDeps { registry?: ExtensionRegistry; disabledTools?: Set; getSessionKey: () => string | undefined; hookRunner?: ExtensionHookRunner; toolExecutorConfig?: Partial; } export declare class ExtensionToolProvider implements ExternalToolProvider { private readonly deps; readonly source: "extension"; constructor(deps: ExtensionToolProviderDeps); search(_query: string): Promise; describe(toolRef: string): Promise; execute(toolRef: string, args: Record, _approvalId: string | undefined, context: ExternalToolExecutionContext): Promise>; private resolve; }