UNPKG

dlovely-websocket

Version:

WebSocket For Dlovely

39 lines (38 loc) 1.43 kB
export declare function randomString(len?: number): string; export declare const con_style: { readonly bright: "\u001B[1m"; readonly grey: "\u001B[2m"; readonly italic: "\u001B[3m"; readonly underline: "\u001B[4m"; readonly reverse: "\u001B[7m"; readonly hidden: "\u001B[8m"; readonly black: "\u001B[30m"; readonly red: "\u001B[31m"; readonly green: "\u001B[32m"; readonly yellow: "\u001B[33m"; readonly blue: "\u001B[34m"; readonly magenta: "\u001B[35m"; readonly cyan: "\u001B[36m"; readonly white: "\u001B[37m"; readonly blackBG: "\u001B[40m"; readonly redBG: "\u001B[41m"; readonly greenBG: "\u001B[42m"; readonly yellowBG: "\u001B[43m"; readonly blueBG: "\u001B[44m"; readonly magentaBG: "\u001B[45m"; readonly cyanBG: "\u001B[46m"; readonly whiteBG: "\u001B[47m"; }; export declare const conStyle: (text: any, ...styles: Array<keyof typeof con_style>) => string; declare const con: (header: string, type: 'log' | 'warn' | 'error', c1: keyof typeof con_style, c2: keyof typeof con_style) => (...message: any[]) => void; export declare class Toast { readonly name: string; constructor(name: string); log: ReturnType<typeof con>; warn: ReturnType<typeof con>; error: ReturnType<typeof con>; open(): void; close(): void; } export declare const toast: Toast; export {};