import fileLoader from "file-loader"; import sharp from "sharp"; import { loader } from "webpack"; export interface Options { readonly width?: number; readonly height?: number; readonly fit?: "cover" | "contain" | "fill" | "inside" | "outside"; readonly position?: "top" | "right top" | "right" | "right bottom" | "bottom" | "left bottom" | "left" | "left top" | "north" | "northeast" | "east" | "southeast" | "south" | "southwest" | "west" | "northwest" | "center" | "centre" | "entropy" | "attention"; readonly background?: sharp.Color; readonly scale?: number; readonly format?: "jpeg" | "png" | "webp" | "avif" | "tiff"; readonly quality?: number; readonly scaleUp?: boolean; readonly sharpOptions?: { readonly resize?: Partial; readonly png?: Partial; readonly jpeg?: Partial; readonly webp?: Partial; readonly avif?: Partial; readonly tiff?: Partial; }; readonly fileLoader?: string; readonly fileLoaderOptionsGenerator?: string | ((options: Omit, existingOptions: Record | undefined) => Record); } export declare type FullOptions = Options & Required>; export declare const raw = true; export default function (this: loader.LoaderContext, content: ArrayBuffer): void; export declare function defaultFileLoaderOptionsGenerator({ format }: Omit, existingOptions: fileLoader.Options | undefined): fileLoader.Options;