import { TxIconGlyph } from '../../icon/src/types'; import { IconPickerCatalogSection } from './types'; /** * Loads a section's path data; resolves once its classes can be drawn. Safe to * call repeatedly. A no-op outside a browser, so a server render never holds * data the client's first render does not. * * A failed load is not retried: browsers keep a failed dynamic import's * result for the URL, so a second attempt fails the same way. */ export declare function loadIconPickerGlyphs(section: IconPickerCatalogSection): Promise; /** * `TxIconConfig.classGlyph` for the bundled catalog: its classes resolve to * path data, every other class to `null`. * * A class whose section has not loaded yet resolves to an empty glyph and * starts the load. Falling back to the class for the length of an import * would flash a filled box on every host without the CSS; it does fall back * once a load has failed, since the host's CSS is then all there is. */ export declare function resolveIconPickerGlyph(className: string): TxIconGlyph | null; /** * Provides the bundled glyphs to the picker's subtree, layered over the icon * config the host provided: its URL resolver, fetcher and file protocol still * apply inside the picker, and its own `classGlyph` is asked first. * * Catalog classes draw empty until the picker has mounted. Path data only * loads in a browser, so a server render cannot draw them, and a client that * already holds the data from an earlier picker would draw them while * hydrating — markup the server never sent. */ export declare function provideIconPickerGlyphs(): void;