import { IconName } from '../../types'; export type IconAriaAttribute = 'aria-label'; export declare const ICON_SIZE: readonly ["x-large", "large", "medium", "small", "x-small"]; export type IconSize = (typeof ICON_SIZE)[number]; export declare const ICON_LOADING: readonly ["lazy", "eager"]; export type IconLoading = (typeof ICON_LOADING)[number]; /** * Starts importing icons into the shared icon cache before they are rendered, * e.g. icons that are visible on every page like header or footer icons. * `DSIcon` renders icons that are already imported without a loading placeholder. * * ```tsx * preloadIcons(['chevron-down', 'cross', 'magnifying-glass']); * ``` */ export declare const preloadIcons: (iconNames: IconName[]) => Promise; export declare const useDynamicSvgImport: (iconName: IconName, loading?: IconLoading, isEnabled?: boolean) => { isLoading: boolean; SVGIcon: import('react').FunctionComponent & { title?: string; titleId?: string; desc?: string; descId?: string; }> | undefined; setShouldLoad: import('react').Dispatch>; };