// Type definitions for ora 1.3 // Project: https://github.com/sindresorhus/ora // Definitions by: Basarat Ali Syed // Christian Rackerseder // BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// type SpinnerName = 'dots' | 'dots2' | 'dots3' | 'dots4' | 'dots5' | 'dots6' | 'dots7' | 'dots8' | 'dots9' | 'dots10' | 'dots11' | 'dots12' | 'line' | 'line2' | 'pipe' | 'simpleDots' | 'simpleDotsScrolling' | 'star' | 'star2' | 'flip' | 'hamburger' | 'growVertical' | 'growHorizontal' | 'balloon' | 'balloon2' | 'noise' | 'bounce' | 'boxBounce' | 'boxBounce2' | 'triangle' | 'arc' | 'circle' | 'squareCorners' | 'circleQuarters' | 'circleHalves' | 'squish' | 'toggle' | 'toggle2' | 'toggle3' | 'toggle4' | 'toggle5' | 'toggle6' | 'toggle7' | 'toggle8' | 'toggle9' | 'toggle10' | 'toggle11' | 'toggle12' | 'toggle13' | 'arrow' | 'arrow2' | 'arrow3' | 'bouncingBar' | 'bouncingBall' | 'smiley' | 'monkey' | 'hearts' | 'clock' | 'earth' | 'moon' | 'runner' | 'pong' | 'shark' | 'dqpb'; type Color = 'black' | 'red' | 'green' | 'yellow' | 'blue' | 'magenta' | 'cyan' | 'white' | 'gray'; interface Options { text?: string; spinner?: SpinnerName | Spinner; color?: Color; interval?: number; stream?: NodeJS.WritableStream; enabled?: boolean; } interface PersistOptions { symbol?: string; text?: string; } interface Spinner { interval?: number; frames: string[]; } declare class Ora { start(text?: string): Ora; stop(): Ora; succeed(text?: string): Ora; fail(text?: string): Ora; warn(text?: string): Ora; info(text?: string): Ora; stopAndPersist(options?: PersistOptions | string): Ora; clear(): Ora; render(): Ora; frame(): Ora; text: string; color: Color; promise(action: PromiseLike, options?: Options | string): Ora; } interface oraFactory { (options?: Options | string): Ora; new (options?: Options | string): Ora; } declare const ora: oraFactory; export = ora;