import { DisplayObject } from '@antv/g'; export declare function identity(x: T): T; type Func = (x: R, ...args: any[]) => R; /** * Composes functions from left to right. */ export declare function compose(fns: Func[]): Func; /** * Composes single-argument async functions from left to right. */ export declare function composeAsync(fns: ((x: R) => Promise | R)[]): (x: R) => Promise | R; export declare function capitalizeFirst(str: string): string; export declare function error(message?: string): never; export declare function copyAttributes(target: DisplayObject, source: DisplayObject): void; export declare function defined(x: any): boolean; export declare function random(a: number, b: number): number; export declare function useMemo(compute: (key: T) => U): (key: T) => U; export declare function appendTransform(node: DisplayObject, transform: any): void; export declare function subObject(obj: Record, prefix: string): Record; export declare function maybeSubObject(obj: Record, prefix: string): Record; export declare function prefixObject(obj: Record, prefix: string): Record; export declare function filterPrefixObject(obj: Record, prefix: string[]): Record; export declare function omitPrefixObject(obj: Record, ...prefixes: string[]): { [k: string]: any; }; export declare function maybePercentage(x: number | string, size: number): number; export declare function isStrictObject(d: any): boolean; export declare function isUnset(value: any): boolean; export {};