import type { DatabaseSync } from "node:sqlite";
import type { ChatMessage, NewChatMessage, UpdateChatMessagePatch } from "./types.js";
export declare function listMessages(db: DatabaseSync, chatId: string): readonly ChatMessage[];
export declare function listMessagesLimited(db: DatabaseSync, chatId: string, limit: number): readonly ChatMessage[];
export declare function findMessageById(db: DatabaseSync, id: string): ChatMessage | undefined;
export declare function insertMessage(db: DatabaseSync, id: string, msg: NewChatMessage, redactString: (s: string) => string): ChatMessage;
export declare function updateMessage(db: DatabaseSync, id: string, patch: UpdateChatMessagePatch, redactString: (s: string) => string): ChatMessage;
//# sourceMappingURL=messages.d.ts.map