1 | import * as winston from "winston";
|
2 | export declare namespace Security {
|
3 | /**
|
4 | * Creates a unique snowflake
|
5 | */
|
6 | function snowflake(): Promise<string>;
|
7 | /**
|
8 | * Creates a secure random string of a given length
|
9 | * @param length the length
|
10 | */
|
11 | function random(length: number): Promise<string>;
|
12 | }
|
13 | export declare namespace Miscellaneous {
|
14 | /**
|
15 | * Returns an object with a promise and a callback
|
16 | */
|
17 | function callbackPromise(): {
|
18 | cb: () => void;
|
19 | promise: Promise<void>;
|
20 | };
|
21 | function sortNumbersInObject(obj: {
|
22 | [key: string]: number;
|
23 | }): [string, number][];
|
24 | }
|
25 | export declare const Logger: winston.LoggerInstance;
|