export declare function generateUUIDv4(): string; export declare function isUUIDv4(text: string): boolean; export declare function getErrorMessage(e: unknown): string; export declare function applyDefaults(source: T | undefined, defaults: T): T; /** * Allow knowing the file path of the function calling us. */ export declare function getCallerFilePath(): string | undefined; export declare enum PriorityLevel { veryLow = -200, low = -100, default = 0, high = 100, veryHigh = 200 } export interface ValueWithPriority { value: T; priority: PriorityLevel; } /** * Sorts a list of items based on their priority level in ascending order. * Items with lower priority values (e.g., -200) will appear first in the returned array. * @param values The list of items to sort, each containing a value and a priority. * @returns An array of just the values, sorted by priority. Returns undefined if the input is undefined. */ export declare function sortByPriority(values: undefined | ValueWithPriority[]): undefined | (T[]); /** * Allows avoiding calling a function before n-milliseconds is elapsed. */ export declare class DontCallBeforeElapsed { readonly requireMs: number; private lastTime; constructor(requireMs?: number); check(): boolean; }