import { BuiltinPluginName, type RawIgnorePluginOptions } from "@rspack/binding"; export type IgnorePluginOptions = { /** A RegExp to test the resource against. */ resourceRegExp: NonNullable; /** A RegExp to test the context (directory) against. */ contextRegExp?: RawIgnorePluginOptions["contextRegExp"]; } | { /** A Filter function that receives `resource` and `context` as arguments, must return boolean. */ checkResource: NonNullable; }; export declare const IgnorePlugin: { new (options: IgnorePluginOptions): { name: BuiltinPluginName; _args: [options: IgnorePluginOptions]; affectedHooks: "done" | "make" | "compile" | "emit" | "afterEmit" | "invalid" | "thisCompilation" | "afterDone" | "compilation" | "normalModuleFactory" | "contextModuleFactory" | "initialize" | "shouldEmit" | "infrastructureLog" | "beforeRun" | "run" | "assetEmitted" | "failed" | "shutdown" | "watchRun" | "watchClose" | "environment" | "afterEnvironment" | "afterPlugins" | "afterResolvers" | "beforeCompile" | "afterCompile" | "finishMake" | "entryOption" | "additionalPass" | undefined; raw(compiler: import("..").Compiler): import("@rspack/binding").BuiltinPlugin; apply(compiler: import("..").Compiler): void; }; };