import type { ScriptHTMLAttributes } from "react";
export declare enum ScriptStrategy {
postHydrate = "post-hydrate",
idle = "idle",
offMainThread = "off-main-thread"
}
export interface ScriptProps extends Omit, `onLoad` | `onError`> {
id?: string;
strategy?: ScriptStrategy | `post-hydrate` | `idle` | `off-main-thread`;
children?: string;
onLoad?: (event: Event) => void;
onError?: (event: ErrorEvent) => void;
forward?: Array;
}
export declare const scriptCache: Set;
export declare const scriptCallbackCache: Map void>;
event?: Event | undefined;
};
error?: {
callbacks?: Array<(event: ErrorEvent) => void>;
event?: ErrorEvent | undefined;
};
}>;
declare function GatsbyScriptLocationWrapper(props: ScriptProps): JSX.Element;
export { GatsbyScriptLocationWrapper as Script };