import { CreateIntlFn, Formatters, IntlCache, IntlFormatters, MessageDescriptor, MessageDescriptor as MessageDescriptor$1, ResolvedIntlConfig as ResolvedIntlConfig$1, createIntlCache } from "@formatjs/intl"; import { FormatXMLElementFn, Options, PrimitiveType } from "intl-messageformat"; import * as React from "react"; //#region packages/react-intl/utils.d.ts type DefaultIntlConfig = Pick; declare const DEFAULT_INTL_CONFIG$1: DefaultIntlConfig; //#endregion //#region packages/react-intl/types.d.ts type IntlConfig = Omit & Partial; interface ResolvedIntlConfig extends ResolvedIntlConfig$1 { textComponent?: React.ComponentType | keyof React.JSX.IntrinsicElements; wrapRichTextChunksInFragment?: boolean; } interface IntlShape extends ResolvedIntlConfig, IntlFormatters { formatMessage(this: void, descriptor: MessageDescriptor$1, values?: Record>, opts?: Options): string; formatMessage(this: void, descriptor: MessageDescriptor$1, values?: Record>, opts?: Options): Array; formatters: Formatters; } //#endregion //#region packages/react-intl/components/createIntl.d.ts /** * Create intl object * @param config intl config * @param cache cache for formatter instances to prevent memory leak */ declare const createIntl: CreateIntlFn; //#endregion //#region packages/react-intl/server.d.ts declare function defineMessages = Record>(msgs: U): U; declare function defineMessage(msg: T): T; //#endregion export { type IntlCache, type IntlConfig, type IntlShape, type MessageDescriptor, type ResolvedIntlConfig, createIntl, createIntlCache, defineMessage, defineMessages }; //# sourceMappingURL=server.d.ts.map