import { NextFunction, Request, Response } from 'express'; export declare class GalleryMWs { /** * Middleware to safely parse searchQueryDTO from URL parameters * Handles URL decoding and JSON parsing with proper error handling */ static parseSearchQuery(req: Request, res: Response, next: NextFunction): void; static listDirectory(req: Request, res: Response, next: NextFunction): Promise; static zipDirectory(req: Request, res: Response, next: NextFunction): Promise; /** * The zip of a folder (the navbar's exact directory query) is named after the folder, other searches are SearchResults.zip. */ private static zipName; static cleanUpGalleryResults(req: Request, res: Response, next: NextFunction): void; static loadFile(req: Request, res: Response, next: NextFunction): Promise; static loadBestFitVideo(req: Request, res: Response, next: NextFunction): Promise; static search(req: Request, res: Response, next: NextFunction): Promise; static autocomplete(req: Request, res: Response, next: NextFunction): Promise; static getRandomImage(req: Request, res: Response, next: NextFunction): Promise; static getMediaEntry(req: Request, res: Response, next: NextFunction): Promise; }