import { ParentDirectoryDTO, SubDirectoryDTO } from '../../../common/entities/DirectoryDTO'; import { DirectoryEntity } from './enitites/DirectoryEntity'; import { Connection } from 'typeorm'; import { MediaEntity } from './enitites/MediaEntity'; import { DuplicatesDTO } from '../../../common/entities/DuplicatesDTO'; import { SessionContext } from '../SessionContext'; export declare class GalleryManager { static parseRelativeDirPath(relativeDirectoryName: string): { name: string; parent: string; }; listDirectory(session: SessionContext, relativeDirectoryName: string, knownLastModified?: number, knownLastScanned?: number): Promise; countDirectories(): Promise; countMediaSize(): Promise; countPhotos(): Promise; countVideos(): Promise; getPossibleDuplicates(): Promise; /** * Returns with the directories only, does not include media or metafiles */ selectDirStructure(relativeDirectoryName: string): Promise; /** * Sets cover for the directory and caches it in the DB */ fillCacheForSubDir(connection: Connection, session: SessionContext, dir: SubDirectoryDTO): Promise; getMedia(session: SessionContext, mediaPath: string): Promise; authoriseMedia(session: SessionContext, mediaPath: string): Promise; authoriseMetaFile(session: SessionContext, p: string): Promise; protected getDirIdAndTime(connection: Connection, name: string, path: string): Promise<{ id: number; lastScanned: number; lastModified: number; }>; protected getParentDirFromId(connection: Connection, session: SessionContext, partialDirId: number): Promise; }