// Generated by dts-bundle v0.7.3 export = CopyPlugin; /** * @typedef {Object} PluginOptions * @property {Pattern[]} patterns * @property {AdditionalOptions} [options] */ class CopyPlugin { /** * @param {PluginOptions} [options] */ constructor(options?: PluginOptions | undefined); /** * @param {Compiler} compiler */ apply(compiler: Compiler): void; } namespace CopyPlugin { export { Schema, Compiler, Compilation, WebpackError, Asset, GlobbyOptions, GlobEntry, WebpackLogger, CacheFacade, Etag, Snapshot, Force, CopiedResult, StringPattern, NoErrorOnMissing, Context, From, ToFunction, To, ToType, TransformerFunction, TransformerCacheObject, TransformerObject, Transform, Filter, TransformAllFunction, Info, ObjectPattern, Pattern, AdditionalOptions, PluginOptions, }; } type Compiler = import("webpack").Compiler; type PluginOptions = { patterns: Pattern[]; options?: AdditionalOptions | undefined; }; type Schema = import("schema-utils/declarations/validate").Schema; type Compilation = import("webpack").Compilation; type WebpackError = import("webpack").WebpackError; type Asset = import("webpack").Asset; type GlobbyOptions = import("globby").Options; type GlobEntry = import("globby").GlobEntry; type WebpackLogger = ReturnType; type CacheFacade = ReturnType; type Etag = ReturnType< ReturnType["getLazyHashedEtag"] >; type Snapshot = ReturnType; type Force = boolean; type CopiedResult = { sourceFilename: string; absoluteFilename: string; filename: string; source: Asset["source"]; force: Force | undefined; info: Record; }; type StringPattern = string; type NoErrorOnMissing = boolean; type Context = string; type From = string; type ToFunction = (pathData: { context: string; absoluteFilename?: string; }) => string | Promise; type To = string | ToFunction; type ToType = "dir" | "file" | "template"; type TransformerFunction = ( input: Buffer, absoluteFilename: string ) => string | Buffer | Promise | Promise; type TransformerCacheObject = | { keys: { [key: string]: any; }; } | { keys: ( defaultCacheKeys: { [key: string]: any; }, absoluteFilename: string ) => Promise<{ [key: string]: any; }>; }; type TransformerObject = { transformer: TransformerFunction; cache?: boolean | TransformerCacheObject | undefined; }; type Transform = TransformerFunction | TransformerObject; type Filter = (filepath: string) => boolean | Promise; type TransformAllFunction = ( data: { data: Buffer; sourceFilename: string; absoluteFilename: string; }[] ) => string | Buffer | Promise | Promise; type Info = | Record | ((item: { absoluteFilename: string; sourceFilename: string; filename: string; toType: ToType; }) => Record); type ObjectPattern = { from: From; globOptions?: import("globby").Options | undefined; context?: string | undefined; to?: To | undefined; toType?: ToType | undefined; info?: Info | undefined; filter?: Filter | undefined; transform?: Transform | undefined; transformAll?: TransformAllFunction | undefined; force?: boolean | undefined; priority?: number | undefined; noErrorOnMissing?: boolean | undefined; }; type Pattern = StringPattern | ObjectPattern; type AdditionalOptions = { concurrency?: number | undefined; };