export interface IconOptions { /** The fill of the SVG being processed */ fill?: string; /** The SVG being processed. */ svg?: string; /** The viewBox of the SVG being processed. */ viewBox?: string; /** pascalCase icon name. */ pascalCase?: string; /** TitleCase icon name. */ titleCase?: string; /** param-case icon name. */ paramCase: string; /** FullIcon name. */ iconName?: string; /** Amount of bytes removed during processing. */ iconSavings?: number; } /** * Get the list of SVG files in the provided directory. * * @param directory - Directory where SVGs are stored. */ export declare const getSVGFiles: (directory: string) => string[]; /** * Get a string representation of an element's attribute (key & value) * * @param attribute - The name of the attribute * * @param htmlString - The element's markup */ export declare const getAttributeString: (attribute: string, htmlString: string) => string | undefined; interface GetTransformedSvg { /** Remove color from SVG */ stripColor: boolean; } /** * Do the bulk of SVG processing through SVGO and regex. * * @param svgPath - path to SVG directory. * @param svgFile - file name of SVG to read and process. */ export declare const getTransformedSvg: (svgPath: string, svgFile: string, options: GetTransformedSvg) => Promise; /** * Create a mapping file from string to icon component. * * @param icons - List of icons that were processed. * @param outPath - Path to where processed SVGs were stored. (For relative imports) */ export declare const generateMapping: (icons: IconOptions[], outPath: string) => void; /** * Generate file which exports all generated icons. * * @param icons - List of icons that were processed. * @param outPath - Path to where processed SVGs were stored. (For relative imports) */ export declare const generateExports: (icons: IconOptions[], outPath: string) => void; /** * Run the process of generating icons, mappings, and exports based on CLI arguments. * * @param args - arguments from CLI */ export declare const buildComponents: (args: Args) => Promise; interface Args { /** Path to the SVG directory */ svg: string; /** Path to the template */ template: string; /** Path to write output */ out: string; /** Whether to overwrite existing files */ overwrite: boolean; /** Whether to write mapping file */ noMapping: boolean; /** Whether strip color from the SVGs */ noStripColor: boolean; /** The suffix to put after the name of a generated icon */ nameSuffix: boolean; } export {}; //# sourceMappingURL=index.d.ts.map