/** * BRAIN Timeline — Layer 2 retrieval: chronological context around an anchor entry. * * @task T5132 * @epic T5149 */ import type { TimelineBrainParams, TimelineBrainResult } from '@cleocode/contracts'; /** * Determine the entry type from its ID prefix. * * Conventions: * - D... -> decision (D001, D-xxx) * - P... -> pattern (P001, P-xxx) * - L... -> learning (L001, L-xxx) * - O... or CM-... -> observation (O-xxx, CM-xxx) */ export declare function parseIdPrefix(id: string): 'decision' | 'pattern' | 'learning' | 'observation' | null; /** * Get chronological context around an anchor entry. * Fetches the anchor's full data, then queries all 4 BRAIN tables * via UNION ALL to find chronological neighbors. * * @param projectRoot - Project root directory * @param params - Timeline parameters with anchor ID and depth * @returns Anchor entry data with surrounding chronological entries */ export declare function timelineBrain(projectRoot: string, params: TimelineBrainParams): Promise; //# sourceMappingURL=timeline.d.ts.map