export declare const ifInBrowser: boolean;
export declare const ifInWorker: boolean;
export declare const ifInNode: string | false;
export declare function uuid(): string;
export declare function generateHashId(rect: any, content?: string): string;
/**
 * A utility function that asserts a condition and throws an error with a message if the condition is false.
 *
 * @param condition - The condition to assert
 * @param message - The error message to throw if the condition is false
 * @throws Error with the provided message if the condition is false
 */
export declare function assert(condition: any, message?: string): asserts condition;
export declare function logMsg(...message: Parameters<typeof console.log>): void;
export declare function repeat(times: number, fn: (index: number) => Promise<void>): Promise<void>;
export declare const escapeScriptTag: (html: string) => string;
export declare const antiEscapeScriptTag: (html: string) => string;
export declare function replaceIllegalPathCharsAndSpace(str: string): string;
/**
 * Check if a value is a plain object (not null, not array, not other types)
 */
export declare function isPlainObject(value: unknown): value is Record<string, any>;
/**
 * Normalize string for comparison: lowercase and remove spaces, dashes, and underscores.
 * Useful for flexible app name matching.
 */
export declare function normalizeForComparison(str: string): string;
/**
 * Merge and normalize app name mappings.
 * Keys are normalized (lowercase, no spaces/dashes/underscores) for flexible matching.
 * User-provided mapping takes precedence over default mapping.
 */
export declare function mergeAndNormalizeAppNameMapping(defaultMapping: Record<string, string>, userMapping?: Record<string, string>): Record<string, string>;
