export interface DashboardSummaryRecord { key: string; sortKey: string; search: string; status: string; kind?: string; group?: string | null; attention?: boolean; volatile?: boolean; payload: unknown; } export interface DashboardSummarySource { key: string; fingerprint: string; read(): Promise; } interface IndexMetadata { sourceCount: number; indexedCount: number; indexing: boolean; errors: string[]; generation: string; } export interface DashboardSummaryQuery { limit?: number; offset?: number; search?: string; statuses?: string[]; kind?: string; group?: string; hasGroup?: boolean; attention?: boolean; keys?: string[]; descending?: boolean; } export declare class DashboardSummaryIndexError extends Error { } export declare function markDashboardSummaryIndexDirty(projectRoot: string, namespace: string): void; /** Rebuildable display summaries. Callers retain authority over reads and mutations. */ export declare class DashboardSummaryIndex { private readonly options; readonly databasePath: string; private readonly lockKey; constructor(options: { projectRoot: string; namespace: string; cacheRoot?: string; refreshIntervalMs?: number; discover(): AsyncIterable | Promise; }); private database; refresh(options?: { maxSources?: number; budgetMs?: number; }): Promise; private refreshSources; ensure({ fresh }?: { fresh?: boolean | undefined; }): Promise; metadata(): Promise; query(query?: DashboardSummaryQuery): Promise<{ items: T[]; total: number; indexing: boolean; sourceCount: number; indexedCount: number; errors: string[]; generation: string; }>; find(key: string): Promise; } export {}; //# sourceMappingURL=summary-index.d.ts.map