/** * Creates an HTML script tag that injects data into a global variable * * @param globalName - The name of the global variable (e.g., '__POLEN__') * @param data - The data to inject (will be JSON stringified) * @returns HTML script tag string ready to inject into HTML * * @example * ```ts * const script = createGlobalDataScript('__MY_APP__', { user: { id: 1, name: 'John' } }) * // Returns: * ``` */ export declare const createGlobalDataScript: (globalName: string, data: unknown) => string; /** * Creates a script tag that initializes global data and runs initialization code * * @param globalName - The name of the global variable * @param data - The data to inject * @param initCode - Optional initialization code to run after setting the global * @returns HTML script tag string * * @example * ```ts * const script = createGlobalDataScriptWithInit('__THEME__', { theme: 'dark' }, ` * document.documentElement.className = globalThis.__THEME__.theme; * `) * ``` */ export declare const createGlobalDataScriptWithInit: (globalName: string, data: unknown, initCode?: string) => string; /** * Injects a global data script into the head of an HTML document * * @param html - The HTML document string * @param globalName - The name of the global variable * @param data - The data to inject * @param initCode - Optional initialization code * @returns Modified HTML with script injected */ export declare const injectGlobalDataIntoHTML: (html: string, globalName: string, data: unknown, initCode?: string) => string; //# sourceMappingURL=inject-global-data.d.ts.map