import type { AgentTool } from '@earendil-works/pi-agent-core'; import { type DataBatchArgs } from './schema.js'; import type { DataBatchResult } from './types.js'; /** Each batch owns its read cache; permissions are checked before sharing any data. */ export interface DataSourceOptions { getTools?: () => readonly AgentTool[]; allowHostGit?: () => boolean; canExecute?: (toolName: string) => boolean; } export declare function acquireData(workspace: string, args: DataBatchArgs, allowed: ReadonlySet, signal?: AbortSignal, options?: DataSourceOptions): Promise;