1 | import pLimit from 'p-limit';
|
2 | /**
|
3 | * Converts a string to 32bit integer
|
4 | */
|
5 | export declare function stringToHash(str: string): number;
|
6 | export declare type StackNext = () => void;
|
7 | export declare type StackFn<T> = (input: T, next: StackNext) => void;
|
8 | export declare function useStack<T>(...fns: Array<StackFn<T>>): (input: T) => void;
|
9 | export declare function useLimit(concurrency: number): pLimit.Limit;
|