import { Breaker, EventHandler, Properties } from '../types'; export declare const trim: (str: string) => string; export declare function eachArray(obj: E[] | null | undefined, iterator: (value: E, key: number) => void | Breaker, thisArg?: any): 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 const include: (obj: null | string | Array | Record, target: any) => boolean | Breaker; export declare function includes(str: T[] | string, needle: T): boolean; /** * Object.entries() polyfill * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries */ export declare function entries(obj: Record): [string, T][]; export declare const isValidRegex: (str: string) => boolean; export declare const timestamp: () => number; export declare const trySafe: (fn: () => T) => T | undefined; export declare const safewrap: any = (...args: any[]) => any>(f: F) => F; export declare const safewrapClass: (klass: Function, functions: string[]) => void; export declare const stripEmptyProperties: (p: Properties) => Properties; export declare const stripLeadingDollar: (s: string) => string; export declare function _copyAndTruncateStrings = Record>(object: T, maxStringLength: number | null): T; export declare function _base64Encode(data: null): null; export declare function _base64Encode(data: undefined): undefined; export declare function _base64Encode(data: string): string; export declare const utf8Encode: (string: string) => string; export declare const registerEvent: (element: Element | Window | Document | Node, type: string, handler: EventHandler, oldSchool?: boolean, useCapture?: boolean) => void; export declare function loadScript(scriptUrlToLoad: string, callback: (error?: string | Event, event?: Event) => void): void; export declare function isCrossDomainCookie(documentLocation: Location | undefined): boolean; export declare function isDistinctIdStringLike(value: string): boolean; export declare function find(value: T[], predicate: (value: T) => boolean): T | undefined;