1 | import type { Middleware, StoreEnhancer } from 'redux';
|
2 | export declare function getTimeMeasureUtils(maxDelay: number, fnName: string): {
|
3 | measureTime<T>(fn: () => T): T;
|
4 | warnIfExceeded(): void;
|
5 | };
|
6 | export declare function delay(ms: number): Promise<unknown>;
|
7 | /**
|
8 | * @public
|
9 | */
|
10 | export declare class MiddlewareArray<Middlewares extends Middleware<any, any>[]> extends Array<Middlewares[number]> {
|
11 | constructor(...items: Middlewares);
|
12 | static get [Symbol.species](): any;
|
13 | concat<AdditionalMiddlewares extends ReadonlyArray<Middleware<any, any>>>(items: AdditionalMiddlewares): MiddlewareArray<[...Middlewares, ...AdditionalMiddlewares]>;
|
14 | concat<AdditionalMiddlewares extends ReadonlyArray<Middleware<any, any>>>(...items: AdditionalMiddlewares): MiddlewareArray<[...Middlewares, ...AdditionalMiddlewares]>;
|
15 | prepend<AdditionalMiddlewares extends ReadonlyArray<Middleware<any, any>>>(items: AdditionalMiddlewares): MiddlewareArray<[...AdditionalMiddlewares, ...Middlewares]>;
|
16 | prepend<AdditionalMiddlewares extends ReadonlyArray<Middleware<any, any>>>(...items: AdditionalMiddlewares): MiddlewareArray<[...AdditionalMiddlewares, ...Middlewares]>;
|
17 | }
|
18 | /**
|
19 | * @public
|
20 | */
|
21 | export declare class EnhancerArray<Enhancers extends StoreEnhancer<any, any>[]> extends Array<Enhancers[number]> {
|
22 | constructor(...items: Enhancers);
|
23 | static get [Symbol.species](): any;
|
24 | concat<AdditionalEnhancers extends ReadonlyArray<StoreEnhancer<any, any>>>(items: AdditionalEnhancers): EnhancerArray<[...Enhancers, ...AdditionalEnhancers]>;
|
25 | concat<AdditionalEnhancers extends ReadonlyArray<StoreEnhancer<any, any>>>(...items: AdditionalEnhancers): EnhancerArray<[...Enhancers, ...AdditionalEnhancers]>;
|
26 | prepend<AdditionalEnhancers extends ReadonlyArray<StoreEnhancer<any, any>>>(items: AdditionalEnhancers): EnhancerArray<[...AdditionalEnhancers, ...Enhancers]>;
|
27 | prepend<AdditionalEnhancers extends ReadonlyArray<StoreEnhancer<any, any>>>(...items: AdditionalEnhancers): EnhancerArray<[...AdditionalEnhancers, ...Enhancers]>;
|
28 | }
|
29 | export declare function freezeDraftable<T>(val: T): T;
|
30 |
|
\ | No newline at end of file |