/** * Utility for registering client-side scripts that need to run after Angular SSR hydration. * * This is necessary because Angular's lifecycle hooks don't always run reliably on the client * after SSR hydration, especially for event listeners attached to DOM elements. * * Usage in Angular components: * ```typescript * import { registerClientScript } from '@absolutejs/absolute'; * * // Register an event listener script * registerClientScript(() => { * const element = document.querySelector('.my-element'); * if (element) { * element.addEventListener('click', () => { * console.log('Clicked!'); * }); * } * }); * ``` * * The script will be automatically injected into the HTML response and executed on the client. */ export declare const getSsrContextId: () => any; export declare const registerClientScript: (script: () => void, requestId?: string) => any; export declare const setSsrContextGetter: (getter: () => string | undefined) => void; /** * Get all registered scripts for a request and clear them. * This is called by the page handler after rendering. * * @param requestId - The request ID to get scripts for * @returns Array of script functions, or empty array if none registered */ export declare const clearAllClientScripts: () => void; export declare const generateClientScriptCode: (scripts: (() => void)[]) => string; export declare const getAndClearClientScripts: (requestId?: string) => (() => void)[];