import { IDatabaseRef, ISaveOption } from './DatabaseService'; export interface IBatchAction { action: 'set' | 'delete'; options: ISaveOption; doc: IDatabaseRef; } export default class DBBatch { batch: IBatchAction[]; provider: string | undefined; constructor(provider?: string); set: (path: string, id: string, data: any, options: ISaveOption) => void; delete: (path: string, id: string) => void; commit: (noEvent?: boolean) => Promise; }