import type { Callback, Nullable } from '../types/shared/utils'; export declare function NOOP(): void; export declare function isCompositionKeydown(ev: KeyboardEvent): boolean; type EventHandler = (event: E) => void; export declare function on(el: Nullable, event: string, handler: EventHandler, options?: AddEventListenerOptions): () => void; export declare function off(el: Nullable, event: string, handler: EventHandler, options?: AddEventListenerOptions): void; export declare function once(el: Nullable, event: string, handler: EventHandler, options?: AddEventListenerOptions): void; export declare function cachedOn(el: Nullable, event: string, handler: EventHandler, options?: AddEventListenerOptions): () => void; export declare function cachedOff(el: Nullable, event: string, handler: EventHandler, options?: AddEventListenerOptions): void; export declare function preventDefaultScroll(ev: Event): boolean; export declare function raf(fn: FrameRequestCallback): number; export declare function caf(id: number): void; interface ThrottleByRafReturnType { (...args: Parameters): void; cancel: () => void; } interface ScheduleByRafOptions { defer?: boolean; } interface ScheduleByRafReturnType { (): void; cancel: () => void; } export declare function scheduleByRaf(callback: Callback, options?: ScheduleByRafOptions): ScheduleByRafReturnType; export declare function throttleByRaf(callback: T): ThrottleByRafReturnType; export {};