UNPKG

@ultraviolet/plus

Version:
26 lines (25 loc) 996 B
import type { ReactNode } from 'react'; import EstimateCostLocales from './locales/en'; export declare const useEstimateCost: () => { locales: Record<keyof typeof EstimateCostLocales, string>; formatNumber: (number: number, options: FormatNumberOption) => string; }; type EstimateCostProviderProps = { children: ReactNode; locales?: Record<keyof typeof EstimateCostLocales, string>; currency?: string; numberLocales?: string; }; type FormatNumberOption = { currencyDisplay?: 'symbol' | 'code' | 'name'; unit?: string; unitDisplay?: 'long' | 'short' | 'narrow'; useGrouping?: boolean; minimumIntegerDigits?: number; minimumFractionDigits?: number; maximumFractionDigits?: number; minimumSignificantDigits?: number; maximumSignificantDigits?: number; }; export declare const EstimateCostProvider: ({ children, locales, currency, numberLocales, }: EstimateCostProviderProps) => import("@emotion/react/jsx-runtime").JSX.Element; export {};