import type { IndexDatabase } from '../../db/database.js'; /** * Build the flows data for API response (hierarchical structure) */ export declare function getInteractionsData(database: IndexDatabase): { interactions: Array<{ id: number; fromModuleId: number; toModuleId: number; fromModulePath: string; toModulePath: string; direction: string; weight: number; pattern: string | null; symbols: string | null; semantic: string | null; source: string; }>; stats: { totalCount: number; businessCount: number; utilityCount: number; biDirectionalCount: number; }; relationshipCoverage: { totalRelationships: number; crossModuleRelationships: number; relationshipsContributingToInteractions: number; sameModuleCount: number; orphanedCount: number; coveragePercent: number; }; processGroups: { groups: Array<{ id: number; label: string; moduleIds: number[]; moduleCount: number; }>; groupCount: number; }; }; /** * Build the flows data for the web UI. * Returns flows with their interaction steps. */ export declare function getFlowsData(database: IndexDatabase): { flows: Array<{ id: number; name: string; slug: string; entryPath: string | null; stakeholder: string | null; description: string | null; actionType: string | null; targetEntity: string | null; tier: number; stepCount: number; steps: Array<{ stepOrder: number; fromModulePath: string; toModulePath: string; semantic: string | null; }>; }>; stats: { flowCount: number; withEntryPointCount: number; avgStepsPerFlow: number; }; coverage: { totalInteractions: number; coveredByFlows: number; percentage: number; }; }; /** * Build the flows DAG data for the visualization. * Returns modules as nodes, interactions as edges, and flows with their steps. */ export declare function getFlowsDagData(database: IndexDatabase): { modules: Array<{ id: number; parentId: number | null; name: string; fullPath: string; description: string | null; depth: number; colorIndex: number; memberCount: number; }>; edges: Array<{ fromModuleId: number; toModuleId: number; weight: number; }>; flows: Array<{ id: number; name: string; stakeholder: string | null; description: string | null; actionType: string | null; targetEntity: string | null; tier: number; stepCount: number; steps: Array<{ interactionId: number | null; fromModuleId: number; toModuleId: number; semantic: string | null; fromDefName: string | null; toDefName: string | null; }>; }>; features: Array<{ id: number; name: string; slug: string; description: string | null; flowIds: number[]; }>; }; //# sourceMappingURL=flow-transforms.d.ts.map