/** * @internal curently this is marked as internal. Until we want to promote customer to build their own extensions. */ export interface UseEventCallbackOptions { eventKey: string; callback: (payload: T) => void; setupScript: () => string; cleanupScript: () => string; shouldInject?: boolean; } /** * Shared hook for managing event callbacks with reference counting * * This hook handles the common pattern of: * - Registering callbacks with React Native event control * - Reference counting to avoid duplicate WebView listeners * - JavaScript injection for setup/cleanup only when needed * - Stable callback handling that survives callback updates * * @param options Configuration for the event callback * @internal curently this is marked as internal. Until we want to promote customer to build their own extensions. */ export declare function useEventCallback({ eventKey, callback, setupScript, cleanupScript, shouldInject, }: UseEventCallbackOptions): void; //# sourceMappingURL=use-event-callback.d.ts.map