import { Duration } from 'luxon'; export declare class Utils { static urlWithoutTrailingSlashes(url: string): string; static parseInteger(value: string): number; static parseIntegerPositive(value: string): number; static parseIntegerWithDefault(value: any, defaultValue: number, toPositive?: boolean): number; static parseFloatFixedPoint(value: string, fractionDigits?: number): number; static parseFloatFixedPointPositive(value: string, fractionDigits?: number): number; static toStringList(value?: string | string[]): string[]; static toDate(val: Date | string | number | undefined): Date | undefined; /** * Parses a string into a duration. The string must either be a number (e.g. * '123', '1000') which will be interpreted as milliseconds, or a number * suffixed by a common unit (e.g. '10 seconds', '1 minute', '2 hours'). */ static toDuration(val: number | string): Duration; static sleep(millis: number): Promise; static toCategoryDetail(enumObject: EnumType & Record, category: string, categoryMapping?: Record): { category: EnumType[keyof EnumType]; detail: string; }; static cleanAndTruncate(str?: string, maxLength?: number): string | null | undefined; }