import type { IntakeEntry } from "../types.js"; export type AddIntakeEntryInput = Omit & Partial>; export type UpdateIntakeEntryPatch = Partial>; export declare function addIntakeEntry(input: AddIntakeEntryInput): Promise; export declare function listIntakeEntries(filter?: { date?: string; }): Promise; export declare function updateIntakeEntry(id: string, patch: UpdateIntakeEntryPatch): Promise; export declare function deleteIntakeEntry(id: string): Promise; export declare function clearIntakeDay(date: string): Promise<{ date: string; deleted_entries: number; }>; export declare function exportIntakeData(): Promise; export declare function exportIntakeCsvData(): Promise; export interface ExportFilter { since?: string | undefined; until?: string | undefined; max_rows?: number | undefined; } export interface FilteredExport { text: string; total_rows: number; included_rows: number; omitted_rows: number; truncated: boolean; } /** * Export intake data with optional date range + row cap, returning the text * plus counts so the caller can tell the user how many rows were omitted. * Rows are selected most-recent-first before capping, so a small `max_rows` * keeps the latest activity rather than the oldest. */ export declare function exportIntakeDataFiltered(format: "jsonl" | "csv", filter?: ExportFilter): Promise;