import type { AgentClassDef, AgentEdge, AgentNode, AgentSubgraph, AgentflowModel, Diagnostic, DiagnosticId, DocItem, ElementMapping, FlowText, LinkInfo, Loc, SemanticModel, VertexKind } from './types.js'; export interface AgentflowDbOptions { maxEdges?: number; inheritDir?: boolean; direction?: string; lineOffset?: number; source?: string; log?: (severity: 'warning' | 'error', message: string) => void; } export declare function isToolDefinition(vertex: AgentNode): boolean; export declare class AgentflowDb implements AgentflowModel { readonly type: 'agentflow'; direction: string | undefined; nodes: Map; edges: AgentEdge[]; subgraphs: AgentSubgraph[]; connectors: Map; classes: Map; tooltips: Map; defaultEdgeStyle: string[] | undefined; defaultInterpolate: string | undefined; mappings: ElementMapping[]; diagnostics: Diagnostic[]; title: string | undefined; accTitle: string | undefined; accDescr: string | undefined; lineOffset: number; private subgraphLookup; private globalNodes; private members; private edgeById; private pairCount; private subCount; private bareMappings; private firstMapping; private reported; private options; constructor(options?: AgentflowDbOptions); private metadata; private errorAt; private shapeError; addVertex(id: string, textObj?: FlowText, type?: string, style?: string[] | null, classes?: string[] | null, dir?: string, props?: Record, metadata?: string, metadataLoc?: Loc): void; addSingleLink(start: string, end: string, type: LinkInfo | undefined, id?: string): void; addLink(starts: string[], ends: string[], linkData: LinkInfo | undefined): void; updateLinkInterpolate(positions: (string | number)[], interpolate: string): void; updateLink(positions: (string | number)[], style: string[]): void; private edgeAt; addClass(ids: string, styles: string[]): void; setDirection(dir: string): void; setClass(ids: string, className: string): void; setTooltip(ids: string, tooltip: string | undefined): void; setLink(ids: string, link: string, target?: string): void; setClickEvent(ids: string, _functionName?: string, _functionArgs?: string): void; setAccTitle(text: string): void; setAccDescription(text: string): void; addSubGraph(idText: { text: string; } | undefined, list: DocItem[], titleText: { text: string; type?: string; } | undefined, _type?: 'flow'): string; addGlobal(list: DocItem[]): void; addConnector(textObj: FlowText | undefined, titleObj?: FlowText): string; destructLink(end: string, start?: string): LinkInfo; subgraph(id: string): AgentSubgraph | undefined; vertexKind(vertex: AgentNode): VertexKind; semanticModel(): SemanticModel; private position; private pushMapping; addVertexMapping(id: string, _text: unknown, shape: unknown, loc: Loc | undefined): void; extendVertexMapping(id: string, loc: Loc | undefined): void; addEdgeMapping(_from: unknown, toNodes: unknown, _link: unknown, loc: Loc | undefined): void; private blockMapping; addSubgraphMapping(id: unknown, _title: unknown, startLoc: Loc | undefined, endLoc: Loc | undefined): void; addConnectorMapping(textObj: FlowText | undefined, _title: unknown, startLoc: Loc | undefined, endLoc: Loc | undefined): void; private emit; emitWarning(id: DiagnosticId, message: string, ctx?: { nodeId?: string; edgeId?: string; }): void; emitError(id: DiagnosticId, message: string, ctx?: { nodeId?: string; edgeId?: string; }): void; }