import { IntlFormatters, IntlShape } from "react-intl";
import { BigNumber } from "bignumber.js";
import { ReactElement } from "react";
import { FromOnePercentUtility } from "../type-utils";
/**
 * A custom hook that provides internationalization utilities.
 * It formats messages and numbers, and includes special features for development mode.
 */
export default function useShortIntl(): IntlShape & {
    txt: <R extends ReturnType<IntlFormatters["formatMessage"]> = string>(id: FromOnePercentUtility<"IntlIds">, params?: Record<string, string | ReactElement>) => R;
    formatToDoubleDecimal(number: number, options?: Parameters<IntlFormatters["formatNumber"]>[1]): string;
    formatBigNumber(number: BigNumber, options?: Parameters<IntlFormatters["formatNumber"]>[1]): string;
};
type StrMap = {
    [s: string]: string;
};
type IsolatedMessages<A extends string, M extends StrMap, P extends string> = {
    [s1 in `${P}.${keyof M extends string ? keyof M : ""}`]: M[keyof M];
};
export declare function isolateMessages<A extends string, M extends StrMap>(preffix: A, strings: M): IsolatedMessages<A, M, A>;
export {};
