/** * AtomicFlowBuilder - Deterministic tier-0 flow builder. * Builds short atomic flows (1-3 interactions) from the interaction graph alone. * No LLM calls — purely structural. */ import type { InteractionWithPaths, Module } from '../../../db/schema.js'; import type { FlowSuggestion } from './types.js'; export declare class AtomicFlowBuilder { /** * Build tier-0 atomic flows from interactions and modules. * Each atomic flow has 1-3 interactions covering a small entity-scoped chain. */ buildAtomicFlows(interactions: InteractionWithPaths[], modules: Module[], moduleEntityOverrides?: Map): FlowSuggestion[]; /** * Group interactions by entity pair. * Key = sorted(fromEntity, toEntity) for bidirectional grouping. * Interactions between _generic modules get their own group per module pair. */ private groupByEntityPair; /** * Find connected chains within a group of interactions. * A chain is a sequence where one interaction's toModuleId matches the next's fromModuleId. */ private findChains; /** * Split a chain longer than maxLen into overlapping segments. * Each segment has at most maxLen interactions. */ private splitChain; /** * Build a FlowSuggestion from a segment of interactions. */ private buildFlowFromSegment; /** * Generate a name for an atomic flow from its interactions. */ private generateAtomicName; /** * Generate a description for an atomic flow. */ private generateAtomicDescription; /** * Get short module name from module. */ private shortModuleName; } //# sourceMappingURL=atomic-flow-builder.d.ts.map