import { useEffect } from 'react'; /** * A whole number of seconds as minutes and seconds, in narrow units: "7s", "1m 5s". */ export declare const formatMinutesAndSeconds: (totalSeconds: number, locale?: string) => string; /** A tool call's duration: tenths below a second ("0.4s"), then minutes and seconds. */ export declare const formatCallDuration: (durationSeconds: number, locale?: string) => string; /** `Date.now()`, refreshed every `intervalMs` while `active`. */ export declare const useNow: (active: boolean, intervalMs?: number) => number; export declare const prefersReducedMotion: () => boolean; /** `useLayoutEffect` in a browser, `useEffect` under server rendering, where it would warn. */ export declare const useIsomorphicLayoutEffect: typeof useEffect; /** Whether `value` is a JSON object, rather than an array, `null` or a scalar. */ export declare const isObject: (value: unknown) => value is Record; /** * The object's fields, with those stream-chat keeps under `custom` moved up beside them. An object * read straight from the API has them at the top level already, and reads the same. */ export declare const withCustomFields: (object: Record) => Record; //# sourceMappingURL=utils.d.ts.map