import type { Plugin } from 'vite'; /** FontAwesome's stylesheet without the glyphs an app never names: the parts fontAwesomeSubset() is made of. */ export declare class FontAwesomeSubset { /** FontAwesome's stylesheet, as an app imports it (`@fortawesome/fontawesome-free/css/all.min.css`). */ static readonly STYLESHEET: RegExp; /** Every `fa-` spelled in the files under `roots` (code, markup, stylesheets), node_modules folders aside. */ static namesIn(roots: readonly string[]): Set; /** Every `fa-` spelled in `text`. */ static namesInText(text: string): Set; /** The icon names of every glyph rule of `css`, aliases included. */ static glyphNames(css: string): Set; /** `css` without the glyph rules none of whose names is in `usedNames`; every other rule stays where it was. */ static subset(css: string, usedNames: ReadonlySet): string; /** The names among `namedInBundle` whose glyph the subset dropped: icons the app would show as blank boxes. */ static lostGlyphs(fullCss: string, subsetCss: string, namedInBundle: ReadonlySet): string[]; } export interface FontAwesomeSubsetOptions { /** * Where the app names its icons: its source folders and files (code, markup, stylesheets), and any dependency that * names icons itself (a rich-text editor's toolbar, say). powerduck's own folder is always read: its components name * icons too. */ roots: readonly string[]; } /** FontAwesome's stylesheet without the glyphs the app never names, in the build (fontawesome-subset.mjs). */ export declare const fontAwesomeSubset: (options: FontAwesomeSubsetOptions) => Plugin;