import type { CapabilityBinding, McpServerRef } from './types.js'; import type { ToolDef } from './types.js'; export type Capability = 'private' | 'untrusted' | 'outbound'; export declare const CAPABILITIES: readonly Capability[]; /** The words of an identifier: `searchFiles`, `read_file`, `get-issue` → search files / read file / get issue. */ export declare function words(identifier: string): string[]; /** What a tool can do, read from its name and parameter names. */ export declare function toolCapabilities(tool: ToolDef): Set; /** A package cannot self-declare trusted capabilities in its schema or annotations. */ export declare function boundCapabilities(server: McpServerRef, tools: ToolDef[], bindings?: readonly CapabilityBinding[]): Record | undefined; export interface FlowTool { server: string; tool: string; } export interface ToxicFlow { client: string; certainty: 'confirmed' | 'possible'; unknown: FlowTool[]; private: FlowTool[]; untrusted: FlowTool[]; outbound: FlowTool[]; /** How many servers the three legs span: 1 means one server carries the whole path. */ servers: number; } /** Per client: the three legs, if every one is present among the servers it starts. */ export declare function toxicFlows(servers: ReadonlyArray<{ client: string; key: string; tools?: readonly ToolDef[]; capabilities?: Record; }>): ToxicFlow[]; export declare function flowSentence(f: ToxicFlow, show: (t: FlowTool) => string): string; //# sourceMappingURL=toxic-flow.d.ts.map