import type React from 'react'; import type { InfoViewerItem } from './InfoViewer'; type LabelMap = { [label in keyof T]?: string; }; type ValueFormatters = { [label in keyof T]?: (value: T[label]) => React.ReactNode; }; interface CreateInfoFormatterOptions { values?: ValueFormatters; labels?: LabelMap; defaultValueFormatter?: (value: Shape[keyof Shape]) => React.ReactNode; } export declare function createInfoFormatter>({ values: valueFormatters, labels: labelMap, defaultValueFormatter, }: CreateInfoFormatterOptions): (label: Key, value: Shape[Key]) => { label: keyof Shape | NonNullable[keyof Shape]>; value: string | number | boolean | React.ReactElement> | Iterable | Shape[Key] | null | undefined; }; export declare const formatObject: >(formatter: (value: Key, label: Shape[Key]) => InfoViewerItem, obj?: Partial) => InfoViewerItem[]; export {};