import {DirectoryDTO} from '../../../common/entities/DirectoryDTO'; import {PhotoDTO} from '../../../common/entities/PhotoDTO'; import {OrientationType, RandomQueryDTO} from '../../../common/entities/RandomQueryDTO'; export interface RandomQuery { directory?: string; recursive?: boolean; orientation?: OrientationType; fromDate?: Date; toDate?: Date; minResolution?: number; maxResolution?: number; } export interface IGalleryManager { listDirectory(relativeDirectoryName: string, knownLastModified?: number, knownLastScanned?: number): Promise; getRandomPhoto(queryFilter: RandomQuery): Promise; }