import { ParentDirectoryDTO } from '../../../common/entities/DirectoryDTO'; import { Connection } from 'typeorm'; import { MediaDTO } from '../../../common/entities/MediaDTO'; export declare class IndexingManager { SavingReady: Promise; private SavingReadyPR; private savingQueue; private isSaving; get IsSavingInProgress(): boolean; private static processServerSidePG2Conf; /** * Indexes a dir, but returns early with the scanned version, * does not wait for the DB to be saved */ indexDirectory(relativeDirectoryName: string, waitForSave?: boolean): Promise; resetDB(): Promise; saveToDB(scannedDirectory: ParentDirectoryDTO): Promise; /** * Queues up a directory to save to the DB. * Returns a promise that resolves when the directory is saved. */ protected queueForSave(scannedDirectory: ParentDirectoryDTO): Promise; protected runSavingLoop(): Promise; protected saveParentDir(connection: Connection, scannedDirectory: ParentDirectoryDTO): Promise; protected saveChildDirs(connection: Connection, currentDirId: number, scannedDirectory: ParentDirectoryDTO): Promise; protected saveMetaFiles(connection: Connection, currentDirID: number, scannedDirectory: ParentDirectoryDTO): Promise; protected saveMedia(connection: Connection, parentDirId: number, media: MediaDTO[]): Promise; protected savePersonsToMedia(connection: Connection, parentDirId: number, scannedFaces: { name: string; mediaId: number; }[]): Promise; private checkSavingReady; private saveChunk; private insertChunk; }