import { RefObject } from "react"; import type { JBTimeInputWebComponent, JBTimeInputEventType } from 'jb-time-input'; export type EventProps = { /** * when component loaded, in most cases component is already loaded before react mount so you dont need this but if you load web-component dynamically with lazy load it will be called after react mount */ onLoad?: (e: JBTimeInputEventType) => void; /** * when all property set and ready to use, in most cases component is already loaded before react mount so you dont need this but if you load web-component dynamically with lazy load it will be called after react mount */ onInit?: (e: JBTimeInputEventType) => void; onChange?: (e: JBTimeInputEventType) => void; onFocus?: (e: JBTimeInputEventType) => void; onBlur?: (e: JBTimeInputEventType) => void; onKeyDown?: (e: JBTimeInputEventType) => void; onKeyUp?: (e: JBTimeInputEventType) => void; onInput?: (e: JBTimeInputEventType) => void; onBeforeinput?: (e: JBTimeInputEventType) => void; onKeyPress?: (e: JBTimeInputEventType) => void; /** * when user press enter key */ onEnter?: (e: JBTimeInputEventType) => void; onBeforeInput?: (e: JBTimeInputEventType) => void; }; export declare function useEvents(element: RefObject, props: EventProps): void;