oceanic-transcripts
Version:
A nicely formatted html transcript generator for oceanic.js.
11 lines (10 loc) • 578 B
TypeScript
import type { NullablePartialEmoji, PartialEmoji } from 'oceanic.js';
export declare function isDefined<T>(value: T | undefined | null): value is T;
export declare function formatBytes(bytes: number, decimals?: number): string;
export declare function parseDiscordEmoji(emoji: PartialEmoji | NullablePartialEmoji): string;
export declare function downloadImageToDataURL(url: string): Promise<string | null>;
/**
* Converts a stream to a string
* @param stream - The stream to convert
*/
export declare function streamToString(stream: NodeJS.ReadableStream): Promise<string>;