export declare type UseScriptProps = { delay?: number; src: string; onError?: (error: Event | string) => void; onReady?: () => void; startLoading: boolean; }; export declare type UseScript = { ready: boolean; error: null | Event | string; }; export declare const useScript: ({ startLoading, onReady, onError, src, delay }: UseScriptProps) => UseScript;