import { LoggerInstance } from './entity'; import { IndexDBSaver } from './index'; type PartialSome = Omit & Partial>; export type LoggerInstanceInfo = PartialSome; export declare class LoggerInstanceModel { private _dbSaver; private _tableName; constructor(_dbSaver: IndexDBSaver); /** * 插入实例对象 */ save(info: LoggerInstanceInfo, transaction?: IDBTransaction): Promise; /** * 查找日志(先存的先被查找) * @param maxCount 查找最大个数 * @returns 持久化的日志内容列表 */ queryList(maxCount?: number, transaction?: IDBTransaction): Promise; /** * 删除日志 * @param logItems 日志(带ID) */ delete(logItems: LoggerInstance[], transaction?: IDBTransaction): Promise; lines(): Promise; /** * 从头删除指定行数 */ deleteByCount(count: number): Promise; deleteAll(): Promise; getItem(id: number, transaction?: IDBTransaction): Promise; update(info: Partial, transaction?: IDBTransaction): Promise; } export {};