export declare function initBehaviorTables(): void;
export declare function logError(data: {
    project?: string;
    file?: string;
    errorType?: string;
    errorMessage?: string;
    line?: number;
}): {
    id: number;
};
export declare function logErrorFix(data: {
    errorId: number;
    fixApplied: string;
    worked: boolean;
    timeToFixMs?: number;
}): void;
export declare function getErrorPatterns(project?: string): Array<{
    errorType: string;
    count: number;
    avgFixTime: number;
    fixRate: number;
    lastOccurrence: string;
}>;
export declare function getRecentErrors(limit?: number, project?: string): Array<{
    id: number;
    file: string;
    errorType: string;
    errorMessage: string;
    fixApplied: string;
    worked: boolean;
    occurredAt: string;
}>;
export declare function logDecision(data: {
    project?: string;
    file?: string;
    decision: string;
    approach?: string;
    result?: string;
    worked?: boolean;
    context?: string;
}): {
    id: number;
};
export declare function getDecisions(project?: string, limit?: number): Array<{
    id: number;
    file: string;
    decision: string;
    approach: string;
    result: string;
    worked: boolean;
    context: string;
    decidedAt: string;
}>;
export declare function logContext(data: {
    project?: string;
    task: string;
    files?: string[];
}): {
    id: number;
};
export declare function getCurrentContext(project?: string): {
    task: string;
    files: string[];
    startedAt: string;
} | null;
export declare function logStuck(data: {
    project?: string;
    file?: string;
    description: string;
}): {
    id: number;
};
export declare function logStuckResolved(stuckId: number, resolution: string): void;
export declare function getStuckPatterns(project?: string): Array<{
    file: string;
    description: string;
    attempts: number;
    resolved: boolean;
    resolution: string;
}>;
export declare function getBehaviorSummary(project?: string): {
    totalErrors: number;
    errorPatterns: ReturnType<typeof getErrorPatterns>;
    recentErrors: ReturnType<typeof getRecentErrors>;
    totalDecisions: number;
    recentDecisions: ReturnType<typeof getDecisions>;
    currentContext: ReturnType<typeof getCurrentContext>;
    stuckIssues: ReturnType<typeof getStuckPatterns>;
};
/**
 * Get the most-recently-touched file in a project, with timestamp + touch count.
 * Source of truth: session_files table (updated by live-watcher on every file_save).
 * Returns null if no files have been touched yet.
 */
export declare function getLastTouchedFile(project?: string): {
    file: string;
    lastTouched: string;
    touchCount: number;
} | null;
/**
 * Count detected patterns for a project, split by category.
 * Mirrors what the @cell block displays under "Patterns detected: N".
 */
export declare function getPatternCounts(project?: string): {
    total: number;
    byCategory: Record<string, number>;
};
/**
 * Get the most recent decisions for a project (with formatted "X minutes ago" string).
 * Default limit 5 — matches what `cell status --decisions` displays.
 */
export declare function getRecentDecisionsWithAgo(project?: string, limit?: number): Array<{
    id: number;
    file: string;
    decision: string;
    worked: boolean;
    ago: string;
    decidedAt: string;
}>;
//# sourceMappingURL=behavioral-tracker.d.ts.map