/** * Injects CSS from a string into the page. Returns the HTML style element inserted into the page. * * @param css The CSS string. * @example * ```js * import {loadCSSFromString} from '@airtable/blocks/ui'; * loadCSSFromString('body { background: red; }'); * ``` * @docsPath UI/utils/loadCSSFromString */ export declare function loadCSSFromString(css: string): HTMLStyleElement; /** * Injects CSS from a remote URL. * * Returns a promise that resolves to the HTML style element inserted into the page. * * @param url The URL of the stylesheet. * @example * ```js * import {loadCSSFromURLAsync} from '@airtable/blocks/ui'; * loadCSSFromURLAsync('https://example.com/style.css'); * ``` * @docsPath UI/utils/loadCSSFromURLAsync */ export declare function loadCSSFromURLAsync(url: string): Promise; /** * Injects Javascript from a remote URL. * * Returns a promise that resolves to the HTML script element inserted into the page. * * @param url The URL of the script. * @example * ```js * import {loadScriptFromURLAsync} from '@airtable/blocks/ui'; * loadScriptFromURLAsync('https://example.com/script.js'); * ``` * @docsPath UI/utils/loadScriptFromURLAsync */ export declare function loadScriptFromURLAsync(url: string): Promise;