import type { styleText } from 'node:util'; import type { Timings } from './timings.js'; import type { Logger } from './log.js'; export declare let st: typeof styleText; /** * Configures the module-level styling function for colored output. */ export declare const configure_print_colors: (s: typeof styleText | null | undefined) => typeof styleText; /** * Formats a key-value pair for printing. */ export declare const print_key_value: (key: string, value: string | number) => string; /** * Formats a `number` of milliseconds for printing. */ export declare const print_ms: (ms: number, decimals?: number, separator?: string) => string; /** * Formats a `number` with separators for improved readability. */ export declare const print_number_with_separators: (v: string, separator?: string) => string; /** * Formats a `string` for printing. */ export declare const print_string: (value: string) => string; /** * Formats a `number` for printing. */ export declare const print_number: (value: number) => string; /** * Formats a `boolean` for printing. */ export declare const print_boolean: (value: boolean) => string; /** * Formats any value for printing. */ export declare const print_value: (value: unknown) => string; /** * Formats an error for printing. * Because throwing errors and rejecting promises isn't typesafe, * don't assume the arg is an `Error` and try to return something useful. */ export declare const print_error: (err: Error) => string; /** * Formats a timing entry with `key` for printing. */ export declare const print_timing: (key: string | number, timing: number | undefined) => string; /** * Prints all timings in a `Timings` object. */ export declare const print_timings: (timings: Timings, log: Logger) => void; //# sourceMappingURL=print.d.ts.map