import type { SqlExpr } from "../tools/search/types.js";
import type { App } from "./app.js";
import { DateTime } from "../tools/types/index.js";
import { Log } from "./log_model.js";
export type LogsStatsItem = {
    date: DateTime;
    total: number;
};
export declare function logQuery(app: App): import("../tools/dbx/select_query.js").SelectQuery;
export declare function findLogById(app: App, id: string): Log;
export declare function logsStats(app: App, expr: SqlExpr | null): LogsStatsItem[];
export declare function deleteOldLogs(app: App, createdBefore: Date | DateTime): Error | null;
