export * from './array'; export * from './color'; export * from './device'; export * from './image-data'; export * from './sortable'; export * from './asserts'; export * from './text'; export * from './promise-util'; export * from './logger'; export type Immutable = O extends Record ? { readonly [key in keyof O]: Immutable; } : O extends Array ? ReadonlyArray : O; export type PickEnum = { [P in keyof K]: P extends K ? P : never; }; export interface Constructor { new (...args: any[]): T; } export type Nullable = T | null; export declare enum DestroyOptions { destroy = 0, keep = 1, force = 0 } /** * */ export interface Disposable { dispose(): void; } export interface RestoreHandler { restore(): void; } export interface LostHandler { lost(e: Event): void; } export declare function noop(): void; /** * 判断对象是否是`String`类型 * * @static * @function isString * @param obj - 要判断的对象 * @return */ export declare function isString(obj: unknown): obj is string; /** * 判断对象是否是`Array`类型 * * @static * @function isArray * @param obj - 要判断的对象 * @return */ export declare const isArray: (arg: any) => arg is any[]; /** * 判断对象是否是函数类型 * * @static * @function isFunction * @param obj - 要判断的对象 * @return */ export declare function isFunction(obj: unknown): obj is Function; /** * 判断对象是否是`Object`类型 * * @static * @function isObject * @param obj - 要判断的对象 * @return */ export declare function isObject(obj: unknown): obj is Record; /** * 判断对象是否是`Plain Object`类型 * * @param obj - 要判断的对象 * @returns */ export declare function isPlainObject(obj: unknown): obj is Record; export declare function isCanvas(canvas: HTMLCanvasElement): boolean; export declare function isPowerOfTwo(value: number): boolean; /** * 生成一个位于 min 和 max 之间的随机数 * @param min * @param max * @returns */ export declare function randomInRange(min: number, max: number): number; export declare function throwDestroyedError(): void; export declare function generateGUID(): string; export declare function base64ToFile(base64: string, filename?: string, contentType?: string): File; export declare function applyMixins(derivedCtrl: T, baseCtrls: K[]): void;