import type { DatabaseSync } from "node:sqlite";
import type { Chat, CreateChatOptions, UpdateChatPatch } from "./types.js";
export declare function listChats(db: DatabaseSync, projectPath: string): readonly Chat[];
export declare function listChatsLimited(db: DatabaseSync, projectPath: string, limit: number): readonly Chat[];
export declare function findChatById(db: DatabaseSync, id: string): Chat | undefined;
export declare function insertChat(db: DatabaseSync, args: {
    readonly id: string;
    readonly projectPath: string;
    readonly title: string;
    readonly selectedModel: string;
    readonly opts: CreateChatOptions | undefined;
    readonly now: number;
}): Chat;
export declare function updateChat(db: DatabaseSync, id: string, patch: UpdateChatPatch, now: number): Chat;
export declare function deleteChat(db: DatabaseSync, id: string): void;
export declare function touchChat(db: DatabaseSync, id: string, now: number): void;
//# sourceMappingURL=chats.d.ts.map