UNPKG

cli-ascii-logo

Version:

Create beautiful ASCII art logos with gradient colors for your CLI applications

38 lines 1.39 kB
import gradient from "gradient-string"; declare const PRESET_GRADIENTS: Record<string, ReturnType<typeof gradient>>; declare const CUSTOM_GRADIENTS: { [key: string]: string[]; }; declare const PALETTE_NAMES: readonly string[]; type CustomGradient = keyof typeof CUSTOM_GRADIENTS; type PresetGradient = keyof typeof PRESET_GRADIENTS; type PaletteName = (typeof PALETTE_NAMES)[number]; type AnimationType = "fade-in" | "slide-in" | "typing"; interface DisplayOptions { gradient?: PaletteName; animation?: AnimationType; duration?: number; clearBefore?: boolean; } declare class Logo { private text; createLogo(text: string, palette?: PaletteName): string; createRandomLogo(text: string): string; setText(text: string): this; getText(): string; addFontStyle(font?: figlet.Fonts, width?: number): this; addRandomGradient(): string; addGradient(palette: PaletteName): string; build(palette?: PaletteName): string; display(options?: DisplayOptions): Promise<void>; private animateFadeIn; private animateSlideIn; private stripAnsi; private animateTyping; private sleep; } export type { PaletteName, CustomGradient, PresetGradient, AnimationType, DisplayOptions }; export { PALETTE_NAMES, CUSTOM_GRADIENTS, PRESET_GRADIENTS }; declare const _default: Logo; export default _default; //# sourceMappingURL=Logo.d.ts.map