1 | import React from 'react';
|
2 | import { ScriptHTMLAttributes } from 'react';
|
3 | export interface Props extends ScriptHTMLAttributes<HTMLScriptElement> {
|
4 | strategy?: 'afterInteractive' | 'lazyOnload' | 'beforeInteractive';
|
5 | id?: string;
|
6 | onLoad?: () => void;
|
7 | onError?: () => void;
|
8 | children?: React.ReactNode;
|
9 | }
|
10 | export declare function initScriptLoader(scriptLoaderItems: Props[]): void;
|
11 | declare function Script(props: Props): JSX.Element | null;
|
12 | export default Script;
|