export = wrapper; /** * @template {IncomingMessage} Request * @template {ServerResponse} Response * @param {import("./index.js").FilledContext} context context * @returns {import("./index.js").Middleware} wrapper */ declare function wrapper< Request extends IncomingMessage, Response extends ServerResponse, >( context: import("./index.js").FilledContext, ): import("./index.js").Middleware; declare namespace wrapper { export { getFilenameFromUrl, ready, FilenameWithExtra, SendErrorOptions, ReadStream, Compiler, Stats, MultiStats, Asset, NextFunction, IncomingMessage, ServerResponse, NormalizedHeaders, OutputFileSystem, FSStats, Extra, }; } /** * @template {IncomingMessage} Request * @template {ServerResponse} Response * @param {import("./index.js").FilledContext} context context * @param {string} url url * @returns {Promise} result of get filename from url */ declare function getFilenameFromUrl< Request extends IncomingMessage, Response extends ServerResponse, >( context: import("./index.js").FilledContext, url: string, ): Promise; /** * @template {IncomingMessage} Request * @template {ServerResponse} Response * @typedef {object} SendErrorOptions send error options * @property {Record=} headers headers * @property {import("./index").ModifyResponseData=} modifyResponseData modify response data callback */ /** * @template {IncomingMessage} Request * @template {ServerResponse} Response * @param {import("./index.js").FilledContext} context context * @param {import("./index.js").Callback} callback callback * @param {Request=} req req * @returns {void} */ declare function ready< Request extends IncomingMessage, Response extends ServerResponse, >( context: import("./index.js").FilledContext, callback: import("./index.js").Callback, req?: Request | undefined, ): void; type FilenameWithExtra = { filename: string; extra: Extra; }; /** * send error options */ type SendErrorOptions< Request extends IncomingMessage, Response extends ServerResponse, > = { /** * headers */ headers?: Record | undefined; /** * modify response data callback */ modifyResponseData?: | import("./index").ModifyResponseData | undefined; }; type ReadStream = import("fs").ReadStream; type Compiler = import("webpack").Compiler; type Stats = import("webpack").Stats; type MultiStats = import("webpack").MultiStats; type Asset = import("webpack").Asset; type NextFunction = import("./index.js").NextFunction; type IncomingMessage = import("./index.js").IncomingMessage; type ServerResponse = import("./index.js").ServerResponse; type NormalizedHeaders = import("./index.js").NormalizedHeaders; type OutputFileSystem = import("./index.js").OutputFileSystem; type FSStats = import("fs").Stats; type Extra = { /** * stats */ stats: FSStats; /** * true when immutable, otherwise false */ immutable?: boolean | undefined; /** * outputFileSystem */ outputFileSystem: OutputFileSystem; };