export declare const VALID_STATUSES: readonly ["succeed", "fail", "spinning", "non-spinnable", "stopped"]; declare const VALID_COLORS: readonly ["black", "red", "green", "yellow", "blue", "magenta", "cyan", "white", "gray", "redBright", "greenBright", "yellowBright", "blueBright", "magentaBright", "cyanBright", "whiteBright"]; export type Spinner = { interval: number; frames: string[]; }; export type SpinnerOptions = { text?: string; status?: (typeof VALID_STATUSES)[number]; indent?: number; spinner?: Partial; disableSpins?: boolean; color?: (typeof VALID_COLORS)[number]; spinnerColor?: (typeof VALID_COLORS)[number]; succeedColor?: (typeof VALID_COLORS)[number]; failColor?: (typeof VALID_COLORS)[number]; succeedPrefix?: string; failPrefix?: string; }; export declare const SPINNERS: { [key: string]: Spinner; }; export declare function purgeSpinnerOptions(options: SpinnerOptions): SpinnerOptions; export declare function purgeSpinnersOptions({ spinner, disableSpins, ...others }: SpinnerOptions): SpinnerOptions; export declare function colorOptions({ color, succeedColor, failColor, spinnerColor, }: SpinnerOptions): Partial; export declare function prefixOptions({ succeedPrefix, failPrefix, }: SpinnerOptions): Partial; export declare function breakText(text: string, prefixLength: number): string; export declare function getLinesLength(text: string, prefixLength: number): number[]; export declare function writeStream(stream: NodeJS.WriteStream, output: string, rawLines: number[]): void; export declare function cleanStream(stream: NodeJS.WriteStream, rawLines: number[]): void; export {};