type ScriptStatus = 'idle' | 'loading' | 'ready' | 'error'; type UseScriptOptions = { async?: boolean; defer?: boolean; removeOnUnmount?: boolean; attributes?: Record; }; export declare function useScript(src: string | null | undefined, options?: UseScriptOptions): ScriptStatus; export type { ScriptStatus, UseScriptOptions };