import type { Compiler } from '@rspack/core'; interface FileRequestsOptions { isFile?: (target: string) => boolean; platform?: NodeJS.Platform; } export declare class FileRequestsPlugin { static readonly name: string; private readonly isFile; private readonly platform; constructor(options?: FileRequestsOptions); rewrite(request: string): { context: string; request: string; } | undefined; apply(compiler: Compiler): void; } export {};