/** biome-ignore-all lint/suspicious/noExplicitAny: utility file */ /** biome-ignore-all lint/complexity/noBannedTypes: utility file */ /** biome-ignore-all lint/performance/noAccumulatingSpread: utility file */ type Extractable = { [key: string]: any; } | undefined; declare function compact>(object: T): {} & T; declare const mapPropsVariants: , K extends keyof T>(props: T, variantKeys?: K[], removeVariantProps?: boolean) => readonly [Omit | T, Pick | {}]; /** * Converts an object into a JSON string. Returns an empty string if the object * is not extractable or if a circular reference is detected during stringification. * * @param obj - The object to convert into a dependency string. * * @returns A JSON string representation of the object or an empty string if conversion fails. * * @example * objectToDeps({ key: 'value' }); // returns '{"key":"value"}' * objectToDeps(undefined); // returns "" */ declare function objectToDeps(obj: Extractable): string; declare function safeClosest(start: Element | null, selector: string): T | null; export { compact, mapPropsVariants, objectToDeps, safeClosest };