/** * FileSystem Middleware Extension Point * * Allows plugins to inject custom middleware into the filesystem request pipeline */ import { Request, Response, NextFunction } from 'express'; /** * Middleware context passed to handlers */ export interface MiddlewareContext { /** * Workspace ID from the request */ workspace?: string; /** * File path segments from the request */ path?: string[]; /** * Operation type (list, read, write, delete, mkdir) */ operation?: string; } /** * Custom filesystem middleware interface */ export interface IFileSystemMiddleware { /** * Priority for middleware execution order * Lower numbers execute first * @default 100 */ priority: number; /** * Middleware handler function * @param req - Express request * @param res - Express response * @param next - Express next function * @param context - Middleware context with workspace and path info */ handle(req: Request, res: Response, next: NextFunction, context?: MiddlewareContext): void | Promise; } //# sourceMappingURL=IFileSystemMiddleware.d.ts.map