import type { EmbeddingConfig } from './embedding.js'; import type { EmbeddingStore } from './embedding-store.js'; import type { GolfScorecard } from './types.js'; export interface EnrichedTicket { key: string; title: string; club: string; description: string; acceptance_criteria: string[]; modules: string[]; max_files: number; files: { primary: string[]; test: string[]; related: string[]; }; estimated_tokens: number; similar_tickets: Array<{ key: string; title: string; result: string; sprint: number; }>; hazards: string[]; } export interface EnrichedBacklog { sprints: Array<{ id: string; title?: string; strategy?: string; tickets: EnrichedTicket[]; [key: string]: unknown; }>; _enrichMeta: { version: 1; enrichedAt: string; topK: number; }; [key: string]: unknown; } /** * Estimate token count for a list of files. * Uses bytes/4 with 1.2x safety factor (TypeScript averages ~3.3 bytes/token). */ export declare function estimateTokens(filePaths: string[], cwd: string): number; /** * Enrich a single ticket with file context and metadata. */ export declare function enrichTicket(opts: { ticket: { key: string; title: string; description: string; modules: string[]; acceptance_criteria: string[]; club: string; max_files: number; }; store: EmbeddingStore; embeddingConfig: EmbeddingConfig; scorecards: GolfScorecard[]; cwd: string; topK?: number; }): Promise; /** * Enrich all tickets in a backlog. */ export declare function enrichBacklog(opts: { backlogPath: string; store: EmbeddingStore; embeddingConfig: EmbeddingConfig; scorecards: GolfScorecard[]; cwd: string; topK?: number; }): Promise; //# sourceMappingURL=enrich.d.ts.map