/** * Cache all scripts from the initial page load * This prevents them from re-executing when navigating back to the first page */ export declare function cacheInitialPageScripts(): void; /** * Check if script should be executed * Scripts are not cached and always re-run by default * Use g-script-once attribute to mark scripts that should only run once */ export declare function shouldExecuteScript(script: HTMLScriptElement): boolean; export declare function getScriptExecutionKey(script: HTMLScriptElement): string | null; export declare function forgetExecutedScript(script: HTMLScriptElement, executionKey?: string | null): void; export declare function waitForScriptLoad(script: HTMLScriptElement, signal?: AbortSignal, executionKey?: string | null): Promise; export declare function executeScriptsInNodes(nodes: Iterable, signal?: AbortSignal): Promise; export declare function executeScripts(container: HTMLElement, signal?: AbortSignal): Promise; export declare function wrapScriptExecution(scriptContent: string): string; //# sourceMappingURL=script.d.ts.map