import type { ToolCallEvent, ToolCallEventResult, ToolResultEvent } from "@earendil-works/pi-coding-agent"; export interface FabricToolOwnershipHost { getActiveTools(): string[]; setActiveTools(names: string[]): void; } export interface FabricTopLevelToolAuthorizer { authorize(ref: string, parentToolCallId: string): Promise; } export declare const ownsFabricToolSource: (tools: Array<{ name: string; sourceInfo: { path: string; }; }>, extensionEntryPath: string) => boolean; export declare class FabricToolLifecycle { #private; readonly ownsFabricTool: () => boolean; readonly authorizer: () => FabricTopLevelToolAuthorizer | undefined; constructor(ownsFabricTool: () => boolean, authorizer: () => FabricTopLevelToolAuthorizer | undefined); toolCall(event: ToolCallEvent): Promise; toolResult(event: ToolResultEvent): { isError: true; } | undefined; clear(): void; } export declare class FabricToolOwnership { #private; readonly host: FabricToolOwnershipHost; constructor(host: FabricToolOwnershipHost); apply(fullCodeMode: boolean): boolean; release(): boolean; } //# sourceMappingURL=tool-ownership.d.ts.map