config redirect

This commit is contained in:
Nuno Coração
2023-01-29 22:30:24 +00:00
parent 17557c7d73
commit 5fb4bd8083
9905 changed files with 1258996 additions and 36355 deletions
+19
View File
@@ -0,0 +1,19 @@
export interface PRNG {
(): number;
}
export interface ULID {
(seedTime?: number): string;
}
export interface LibError extends Error {
source: string;
}
export declare function replaceCharAt(str: string, index: number, char: string): string;
export declare function incrementBase32(str: string): string;
export declare function randomChar(prng: PRNG): string;
export declare function encodeTime(now: number, len: number): string;
export declare function encodeRandom(len: number, prng: PRNG): string;
export declare function decodeTime(id: string): number;
export declare function detectPrng(allowInsecure?: boolean, root?: any): PRNG;
export declare function factory(currPrng?: PRNG): ULID;
export declare function monotonicFactory(currPrng?: PRNG): ULID;
export declare const ulid: ULID;