import type { Key } from 'react'; import { useLayoutEffect } from 'react'; import { type WDesignTheme } from '@worldprinter/wdesign-core'; export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect; export declare function useMediaQueryStringOrFunction(mediaQuery: string | ((theme: WDesignTheme) => string) | undefined): boolean; /** * Utility function that returns a humanized version of a string, e.g. "camelCase" -> "Camel Case" */ export declare function humanize(value: string): string; /** * Utility function that returns an array of values that are present in the first array but not in the second */ export declare function differenceBy(arr1: T[], arr2: T[], iteratee: (value: T) => unknown): T[]; /** * Utility function that returns an array of unique values from a given array */ export declare function uniqBy(arr: T[], iteratee: (value: T) => unknown): T[]; /** * Utility function that returns the value at a given path in an object */ export declare function getValueAtPath(obj: unknown, path: string): unknown; /** * Utility function that returns the record id using idAccessor */ export declare function getRecordId(record: T, idAccessor: string | ((record: T) => Key)): unknown;