import { DataSource } from 'typeorm'; import { TemplateMutation } from './templates'; import { DatabaseState, FinalTxInfo, HashAndHeight, HotTxInfo } from './interfaces'; import { Store } from './store'; export type IsolationLevel = 'SERIALIZABLE' | 'READ COMMITTED' | 'REPEATABLE READ'; export interface TypeormDatabaseOptions { supportHotBlocks?: boolean; isolationLevel?: IsolationLevel; stateSchema?: string; projectDir?: string; } export interface DatabaseTransactResult { templates?: TemplateMutation[]; } export declare class TypeormDatabase { private statusSchema; private isolationLevel; private con?; private projectDir; readonly supportsHotBlocks: boolean; readonly supportsTemplates: true; constructor(options?: TypeormDatabaseOptions); connect(): Promise; disconnect(): Promise; protected initializeDataSource(): Promise; private initTransaction; private getState; transact(info: FinalTxInfo, map: (store: Store) => Promise): Promise; transactHot(info: HotTxInfo, map: (store: Store, block: HashAndHeight) => Promise): Promise; transactHot2(info: HotTxInfo, map: (store: Store, sliceBeg: number, sliceEnd: number) => Promise): Promise; private migrateTemplateRegistryPk; private repairOrphans; private deleteHotBlocks; private insertHotBlock; private updateStatus; private performUpdates; private submit; private escapedSchema; } //# sourceMappingURL=database.d.ts.map