import { UpdateSharingDTO } from '../../../common/entities/SharingDTO'; import { SharingEntity } from './enitites/SharingEntity'; import { UserDTO } from '../../../common/entities/UserDTO'; import { SearchQueryDTO } from '../../../common/entities/SearchQueryDTO'; export declare class SharingManager { /** * A sharing needs at least a media (searchQuery) or a directory (directoryQuery) restriction, * otherwise it would show everything the creator can see. */ private static validateQueries; private static removeExpiredLink; deleteSharing(sharingKey: string): Promise; listAll(): Promise; listAllForQuery(query: SearchQueryDTO, user?: UserDTO): Promise; findOne(sharingKey: string): Promise; createSharing(sharing: Omit): Promise; updateSharing(inSharing: UpdateSharingDTO, forceUpdate: boolean): Promise; }