import { PublicEvent } from "./types"; interface EventData { detail: { data: any; message?: string; } | { errors: string[]; }; } interface SuccessEventDetail { message: string; data: any; } interface ErrorEventDetail { errors: string[]; data: any; } interface SuccessEventDetail { message: string; data: any; } interface ErrorEventDetail { errors: string[]; data: any; } declare const emit: (event: PublicEvent, data?: SuccessEventDetail | ErrorEventDetail, target?: HTMLElement | Window) => void; declare const off: (event: PublicEvent, callback: (e: any) => void, target?: HTMLElement | Window) => void; declare const onOnce: (event: PublicEvent, callback: (e: any) => void, target?: HTMLElement | Window) => void; declare const on: (event: PublicEvent, callback: (e: any) => void, target?: HTMLElement | Window) => void; export { emit, on, onOnce, off }; export type { EventData, SuccessEventDetail, ErrorEventDetail };