/*! * React Native Globalize * * Copyright 2015-2020 Josh Swan * Released under the MIT license * https://github.com/joshswan/react-native-globalize/blob/master/LICENSE */ import { CurrencyFormatter, DateFormatter, DateParser, MessageFormatter, NumberFormatter, NumberParser, PluralGenerator, RelativeTimeFormatter, UnitFormatter } from './types'; export interface Cache { currency: Record; date: Record; dateParsers: Record; message: Record; number: Record; numberParsers: Record; plural: Record; relativeTime: Record; unit: Record; } export declare type CacheValue = CurrencyFormatter | DateFormatter | DateParser | MessageFormatter | NumberFormatter | NumberParser | PluralGenerator | RelativeTimeFormatter | UnitFormatter | any; export declare function createCache(): Cache; interface MemoizeFormatterFn { (builder: T, cache: Record): (...args: Parameters) => any; } export declare const memoizeFormatter: MemoizeFormatterFn; export {};