import type { RefObject } from 'react'; /** Listener callback for a custom DOM event detail payload. */ export type CustomEventListener = (detail: T, event?: Event) => boolean | void; /** Hook that binds a custom DOM event listener and returns a dispatch function. */ export declare const useCustomEvent: (type: string, listener?: CustomEventListener, customRef?: RefObject) => [RefObject, CustomEventListener]; //# sourceMappingURL=useCustomEvent.d.ts.map