export type Breaker = {}; export type EventHandler = (event: Event) => boolean | void; export declare const _isArray: (arg: any) => arg is any[]; export declare function _eachArray(obj: E[] | null | undefined, iterator: (value: E, key: number) => void | Breaker, thisArg?: any): void; export declare const _trim: (str: string) => string; export declare const _bind_instance_methods: (obj: Record) => void; /** * @param {*=} obj * @param {function(...*)=} iterator * @param {Object=} thisArg */ export declare function _each(obj: any, iterator: (value: any, key: any) => void | Breaker, thisArg?: any): void; export declare const _extend: (obj: Record, ...args: Record[]) => Record; export declare function _includes(str: T[] | string, needle: T): boolean; export declare const _isFunction: (f: any) => f is (...args: any[]) => any; export declare const _isUndefined: (obj: any) => obj is undefined; export declare const _register_event: (element: Element | Window | Document | Node, type: string, handler: EventHandler, oldSchool?: boolean, useCapture?: boolean) => void; export declare const _safewrap: any = (...args: any[]) => any>(f: F) => F; export declare const _safewrap_instance_methods: (obj: Record) => void; export declare function _copyAndTruncateStrings = Record>(object: T, maxStringLength: number | null): T; export declare const _isBlockedUA: (ua: string) => boolean; export declare function _findClosestLink(element: HTMLElement | null): HTMLElement | null; export declare function _cleanObject(obj: Record): Record; export declare function isWindowAvailable(): boolean; export declare function generateRandom(length?: number): string; export declare function toCamelCase(str: string): string; export declare function convertKeysToCamelCase(obj: Record): Record;