/** * CLI: messages list/search — query past conversation messages. */ import type Database from "better-sqlite3"; import { type MessageRow } from "../messages/store.js"; import { type ResolvedHistoryThreadScope } from "./history-scope.js"; interface MessageListItem { row: MessageRow; prefix?: string; } export type MessagesGroupSync = (db: Database.Database, chatId: string, threadId?: string) => Promise; interface MessageFormatOptions { includeTimezone?: boolean; threadScope?: ResolvedHistoryThreadScope; } export declare function handleMessages(db: Database.Database, args: string[], chatId: string | undefined, chatType: "p2p" | "group", parseArgs: (args: string[]) => { positional: string[]; flags: Record; }, syncGroupChat?: MessagesGroupSync): Promise; export declare function formatMessagesForList(input: MessageRow[] | MessageListItem[], options?: MessageFormatOptions): string[]; export {};