export interface MemoryEvent {
    project: string;
    branch?: string;
    type: 'file_event' | 'edit' | 'decision' | 'error' | 'fix' | 'verification' | 'publish' | 'handoff' | 'pattern' | 'style' | 'session' | 'branch' | 'risk' | 'question' | 'ai_work' | 'product_rule';
    topic?: string;
    summary: string;
    details?: Record<string, unknown>;
    files?: string[];
    importance?: number;
    tool?: string;
    model?: string;
    tags?: string[];
}
export interface MemoryEventRow extends MemoryEvent {
    id: number;
    created_at: string;
}
export declare function recordMemoryEvent(event: MemoryEvent): number;
export declare function recordMemoryEvents(events: MemoryEvent[]): number[];
export declare function getMemoryEvents(opts?: {
    project?: string;
    type?: string;
    topic?: string;
    branch?: string;
    limit?: number;
    since?: string;
    minImportance?: number;
}): MemoryEventRow[];
export declare function searchMemoryEvents(query: string, project?: string, limit?: number): MemoryEventRow[];
export declare function getMemoryTimeline(project?: string, days?: number): Array<{
    date: string;
    count: number;
    types: Record<string, number>;
}>;
export declare function getMemoryStats(project?: string): {
    total: number;
    byType: Record<string, number>;
    avgImportance: number;
    oldestEvent: string | null;
    newestEvent: string | null;
};
export declare function deleteMemoryEventsOlderThan(days: number): number;
//# sourceMappingURL=memory-event-store.d.ts.map