type Props = {
    url: string;
    onLoad?: () => void;
    onError?: () => void;
};
export declare const useExternalScript: ({ url, onLoad, onError }: Props) => "loading" | "idle" | "error" | "ready";
export {};
