nix-config/cache/npm/global/lib/node_modules/oh-my-logo/dist/lib.d.ts
2025-09-10 11:48:22 +02:00

22 lines
1.2 KiB
TypeScript

import { PALETTES, type PaletteName, resolvePalette, getPaletteNames, getDefaultPalette, getPalettePreview } from './palettes.js';
import type { Fonts } from 'figlet';
export declare const DEFAULT_PALETTE: PaletteName;
export declare const DEFAULT_FONT = "Standard";
export declare const DEFAULT_DIRECTION = "vertical";
export interface RenderOptions {
palette?: PaletteName | string[] | string;
font?: Fonts | string;
direction?: 'vertical' | 'horizontal' | 'diagonal';
}
export type BlockFont = '3d' | 'block' | 'chrome' | 'grid' | 'huge' | 'pallet' | 'shade' | 'simple' | 'simple3d' | 'simpleBlock' | 'slick' | 'tiny';
export interface RenderInkOptions {
palette?: PaletteName | string[] | string;
font?: BlockFont;
letterSpacing?: number;
}
export declare function resolveColors(palette: PaletteName | string[] | string): string[];
export declare function render(text: string, options?: RenderOptions): Promise<string>;
export declare function renderFilled(text: string, options?: RenderInkOptions): Promise<void>;
export { PALETTES, type PaletteName, resolvePalette, getPaletteNames, getDefaultPalette, getPalettePreview, };
export type { Fonts };
//# sourceMappingURL=lib.d.ts.map