export declare const stringFromUnknown: (input: unknown) => string; /** * Clip the input string to the maximum length, using ellipses if it is too long. */ export declare const clipToMaximum: (input: string, maxLength: number) => string; /** * Returns a string with any non-word characters (anything but letters, numbers or the underscore) * removed. This function also returns an empty string if the input is undefined. */ export declare const sanitize: (input?: string) => string; export declare const delay: (ms: number) => Promise; export declare const fatalError: (error?: string | Error, code?: number) => never; /** * Cancel running command with optional message. This would generally be chosen when the user * decides to cancel. */ export declare const cancelCommand: (message?: string) => never; export declare const asTextBulletedList: (enums: string[]) => string; export declare const terminationSignals: NodeJS.Signals[]; /** * Listen for various NodeJS Signals for the purpose of best effort resource/connection cleanup. * * see: https://nodejs.org/api/process.html#process_signal_events */ export declare const handleSignals: (listener: NodeJS.SignalsListener) => void; //# sourceMappingURL=util.d.ts.map