export interface EventScriptOptions { extensionName: string; eventName: string; } /** * Creates a JavaScript script that sets up an event listener for WebView bridge communication * * This function generates a script that: * 1. Creates a callback function in the WebView's window object * 2. Registers that callback with the extension's event system * 3. The callback sends events back to React Native via the bridge * * @param options Configuration for the event setup script * @returns JavaScript code to be injected into the WebView */ export declare function createEventSetupScript(options: EventScriptOptions): string; /** * Creates a JavaScript script that cleans up an event listener from the WebView * * This function generates a script that: * 1. Unregisters the callback from the extension's event system * 2. Removes the callback function from the window object * 3. Wraps everything in an IIFE for isolation * * @param options Configuration for the event cleanup script * @returns JavaScript code to be injected into the WebView */ export declare function createEventCleanupScript(options: EventScriptOptions): string; //# sourceMappingURL=extension-event-scripts.d.ts.map