import { RefObject } from "react"; import type { JBFileInputWebComponent, JBFileInputEventType } from 'jb-file-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: JBFileInputEventType) => 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: JBFileInputEventType) => void; /** * base on standard js `change` event so it only called on blur. use onInput to get every keyStroke */ onChange?: (e: JBFileInputEventType) => void; }; export declare function useEvents(element: RefObject, props: EventProps): void;