export = loader; /** @typedef {import("schema-utils/declarations/validate").Schema} Schema */ /** @typedef {import("webpack").Compilation} Compilation */ /** * @template T * @typedef {Object} LoaderOptions * @property {string} [severityError] Allows to choose how errors are displayed. * @property {import("./index").Minimizer | import("./index").Minimizer[]} [minimizer] * @property {import("./index").Generator[]} [generator] */ /** * @template T * @this {import("webpack").LoaderContext>} * @param {Buffer} content * @returns {Promise} */ declare function loader(content: Buffer): Promise; declare class loader { /** @typedef {import("schema-utils/declarations/validate").Schema} Schema */ /** @typedef {import("webpack").Compilation} Compilation */ /** * @template T * @typedef {Object} LoaderOptions * @property {string} [severityError] Allows to choose how errors are displayed. * @property {import("./index").Minimizer | import("./index").Minimizer[]} [minimizer] * @property {import("./index").Generator[]} [generator] */ /** * @template T * @this {import("webpack").LoaderContext>} * @param {Buffer} content * @returns {Promise} */ constructor(content: Buffer); resourcePath: string | undefined; resourceQuery: string | undefined; } declare namespace loader { export { raw, Schema, Compilation, LoaderOptions }; } declare var raw: boolean; type Schema = import("schema-utils/declarations/validate").Schema; type Compilation = import("webpack").Compilation; /** * */ type LoaderOptions = { /** * Allows to choose how errors are displayed. */ severityError?: string | undefined; minimizer?: | import("./index").Minimizer | import("./index").Minimizer[] | undefined; generator?: import("./index").Generator[] | undefined; };