import { SearchQueryDTO } from '../../../common/entities/SearchQueryDTO'; import { CoverPhotoDTO } from '../../../common/entities/PhotoDTO'; import { SessionContext } from '../SessionContext'; export interface CoverPhotoDTOWithID extends CoverPhotoDTO { id: number; } export declare class CoverManager { private static DIRECTORY_SELECT; /** * Applies the configured cover sorting and adds media.id as a tie-breaker, * so equally ranked media (e.g.: no rating) resolve to the same cover on every DB. * Without it, MySQL may return tied rows in any order. */ private static setCoverSorting; resetCovers(): Promise; getCoverForAlbum(session: SessionContext, album: { searchQuery: SearchQueryDTO; }): Promise; getPartialDirsWithoutCovers(projectionKeys?: string[]): Promise<{ id: number; name: string; path: string; }[]>; getCoverForDirectory(session: SessionContext, dir: { id: number; name: string; path: string; }): Promise; }