import { ComponentType, SVGProps } from 'react'; import { MaterialIconName } from './iconConfig'; /** Steps of the 4 px spacing scale: xs = space-3, sm = space-4, md = space-5, lg = space-6, xl = space-8. */ export declare const ICON_SIZES: { readonly xs: number; readonly sm: number; readonly md: number; readonly lg: number; readonly xl: number; }; /** * The kit font weights that ship as Material Symbols files (`@material-symbols/svg-400`, `svg-600`). Match the text * beside the icon: regular next to regular text, semibold next to semibold or bolder labels and titles. */ export declare const ICON_WEIGHTS: { readonly regular: 400; readonly semibold: 600; }; export type IconSize = keyof typeof ICON_SIZES | number | (string & {}); export type IconWeight = (typeof ICON_WEIGHTS)[keyof typeof ICON_WEIGHTS] | (number & {}); interface IconBaseProps { /** Token, px number, or a CSS length such as `1em` to follow the font size. Default `lg` (24px). */ size?: IconSize; /** Any CSS colour. Default: the surrounding text colour. */ color?: string; /** Accessible name. Without it the icon is decorative and hidden from screen readers. */ label?: string; className?: string; dataCy?: string; } export interface MaterialIconProps extends IconBaseProps { /** Material Symbols name in snake_case, e.g. `arrow_back` (see fonts.google.com/icons). Must be registered. */ name: MaterialIconName; variant?: 'outlined' | 'rounded' | 'sharp'; filled?: boolean; /** Stroke weight of the registered file: `ICON_WEIGHTS.regular` (400, default) or another the app registered, e.g. `600`. */ weight?: IconWeight; } /** * A Material Symbol the app registered with `registerMaterialIcons`, drawn inline (in the server render too, no * request) in the text colour or `color`. An unregistered icon renders nothing. */ export declare const MaterialIcon: ({ name, variant, filled, weight, size, color, label, className, dataCy, }: MaterialIconProps) => import("react/jsx-runtime").JSX.Element; export interface SvgIconProps extends IconBaseProps { /** An SVG React component (`import Logo from './logo.svg?react'`), or the URL of a single-colour SVG. */ svg: ComponentType> | string; } /** * A custom SVG with the same sizing, colour and accessibility as `MaterialIcon`. A URL is painted in `color`; a * component keeps its own colours unless it uses `currentColor`. */ export declare const SvgIcon: ({ svg: Svg, size, color, label, className, dataCy }: SvgIconProps) => import("react/jsx-runtime").JSX.Element; export {};