/** * Dispatches a custom event with optional detail data. * * @template T - The event detail type. * @param target - The target element. * @param eventName - The event name. * @param detail - The detail payload. * @returns `true` when the event was not canceled. * * @example * const el = document.createElement('div') * document.body.appendChild(el) * el.addEventListener('my-event', (e) => console.log('fired', e.detail)) * dispatchCustomEvent(el, 'my-event', { data: 1 }) * * @since 1.0.0 */ declare const dispatchCustomEvent: (target: EventTarget, eventName: string, detail?: T) => boolean; export default dispatchCustomEvent;