export { camelCase } from 'camel-case'; export { pascalCase } from 'pascal-case'; export { lowerCase } from 'lower-case'; export { upperCase } from 'upper-case'; export { paramCase } from 'param-case'; export { Path as FormPath, Pattern as FormPathPattern } from '@formily/path'; declare type EachArrayIterator = (currentValue: T, key: number) => void | boolean; declare type EachStringIterator = (currentValue: string, key: number) => void | boolean; declare type EachObjectIterator = (currentValue: T, key: string) => void | boolean; declare type MapArrayIterator = (currentValue: TItem, key: number) => TResult; declare type MapStringIterator = (currentValue: string, key: number) => TResult; declare type MapObjectIterator = (currentValue: TItem, key: string) => TResult; declare type MemoArrayIterator = (previousValue: U, currentValue: T, key: number) => U; declare type MemoStringIterator = (previousValue: T, currentValue: string, key: number) => T; declare type MemoObjectIterator = (previousValue: TResult, currentValue: TValue, key: string) => TResult; declare const toArr: (val: any) => any[]; declare function each(val: string, iterator: EachStringIterator, revert?: boolean): void; declare function each(val: T[], iterator: EachArrayIterator, revert?: boolean): void; declare function each(val: T, iterator: EachObjectIterator, revert?: boolean): void; declare function map(val: string, iterator: MapStringIterator, revert?: boolean): T[]; declare function map(val: TItem[], iterator: MapArrayIterator, revert?: boolean): TResult[]; declare function map(val: T, iterator: MapObjectIterator, revert?: boolean): Record; declare function reduce(val: T[], iterator: MemoArrayIterator, accumulator?: U, revert?: boolean): U; declare function reduce(val: string, iterator: MemoStringIterator, accumulator?: T, revert?: boolean): T; declare function reduce(val: T, iterator: MemoObjectIterator, accumulator?: TResult, revert?: boolean): TResult; declare function every(val: T, iterator: EachStringIterator, revert?: boolean): boolean; declare function every(val: T[], iterator: EachArrayIterator, revert?: boolean): boolean; declare function every(val: T, iterator: EachObjectIterator, revert?: boolean): boolean; declare function some(val: T, iterator: EachStringIterator, revert?: boolean): boolean; declare function some(val: T[], iterator: EachArrayIterator, revert?: boolean): boolean; declare function some(val: T, iterator: EachObjectIterator, revert?: boolean): boolean; declare function findIndex(val: T, iterator: EachStringIterator, revert?: boolean): number; declare function findIndex(val: T[], iterator: EachArrayIterator, revert?: boolean): number; declare function findIndex(val: T, iterator: EachObjectIterator, revert?: boolean): keyof T; declare function find(val: T, iterator: EachStringIterator, revert?: boolean): any; declare function find(val: T[], iterator: EachArrayIterator, revert?: boolean): T; declare function find(val: T, iterator: EachObjectIterator, revert?: boolean): T[keyof T]; declare function includes(val: T, searchElement: string, revert?: boolean): boolean; declare function includes(val: T[], searchElement: T, revert?: boolean): boolean; declare function move(array: T[], fromIndex: number, toIndex: number): T[]; declare const isEqual: (a: any, b: any) => any; declare const getType: (obj: any) => any; declare const isFn: (val: any) => val is Function; declare const isArr: (arg: any) => arg is any[]; declare const isPlainObj: (obj: unknown) => obj is object; declare const isStr: (obj: unknown) => obj is string; declare const isBool: (obj: unknown) => obj is boolean; declare const isNum: (obj: unknown) => obj is number; declare const isMap: (val: any) => val is Map; declare const isSet: (val: any) => val is Set; declare const isWeakMap: (val: any) => val is WeakMap; declare const isWeakSet: (val: any) => val is WeakSet; declare const isNumberLike: (index: any) => index is number; declare const isObj: (val: unknown) => val is object; declare const isRegExp: (obj: unknown) => obj is RegExp; declare const isReactElement: (obj: any) => boolean; declare const isHTMLElement: (target: any) => target is EventTarget; declare type Subscriber = (payload: S) => void; interface Subscription { notify?: (payload: S) => void | boolean; filter?: (payload: S) => any; } declare const shallowClone: (values: any) => any; declare const clone: (values: any) => any; declare const isUndef: (val: any) => boolean; declare const isValid: (val: any) => boolean; declare function isEmpty(val: any, strict?: boolean): boolean; declare const stringLength: (input: string) => any; declare const globalThisPolyfill: Window; declare function deprecate(method: any, message?: string, help?: string): (p1?: P1, p2?: P2, p3?: P3, p4?: P4, p5?: P5) => any; declare class Subscribable { subscribers: { index?: number; [key: number]: Subscriber; }; subscription: Subscription; subscribe: (callback?: Subscriber) => number; unsubscribe: (index?: number) => void; notify: (payload?: Payload, silent?: boolean) => void; } interface IMiddleware { (payload: Payload, next: (payload?: Payload) => Result): Result; } declare const applyMiddleware: (payload: any, fns?: IMiddleware[]) => Promise; interface Options { arrayMerge?(target: any[], source: any[], options?: Options): any[]; clone?: boolean; assign?: boolean; customMerge?: (key: string, options?: Options) => ((x: any, y: any) => any) | undefined; isMergeableObject?(value: object): boolean; cloneUnlessOtherwiseSpecified?: (value: any, options: Options) => any; } declare function deepmerge(target: any, source: any, options?: Options): any; declare const lazyMerge: (target: T, ...args: T[]) => any; declare const merge: typeof deepmerge; declare const instOf: (value: any, cls: any) => boolean; /** * * @param defaults * @param targets */ declare const defaults: (defaults_: any, targets: any) => any; declare function uid(len?: number): string; export { IMiddleware, Subscribable, Subscriber, Subscription, applyMiddleware, clone, defaults, deprecate, each, every, find, findIndex, getType, globalThisPolyfill, includes, instOf, isArr, isBool, isEmpty, isEqual, isFn, isHTMLElement, isMap, isNum, isNumberLike, isObj, isPlainObj, isReactElement, isRegExp, isSet, isStr, isUndef, isValid, isWeakMap, isWeakSet, lazyMerge, map, merge, move, reduce, shallowClone, some, stringLength, toArr, uid };