import { CreateCardToken } from './protocols'; interface ErroProps { field: string; message: string; } interface UseMercadoPagoProps { publicKey: string; locale?: 'es-AR' | 'es-CL' | 'es-CO' | 'es-MX' | 'es-VE' | 'es-UY' | 'es-PE' | 'pt-BR' | 'en-US'; setError?: (error: ErroProps) => void; } interface OptionsProps { label: string; value: string; } interface CardFlagProps { name?: string; image?: string; } interface IssuerProps { id?: number; name?: string; } declare function useMercadoPago({ publicKey, locale, setError }: UseMercadoPagoProps): { identificationTypeOptions: OptionsProps[]; installmentOptions: OptionsProps[]; cardFlag: CardFlagProps; issuer: IssuerProps; createToken: (cardInfo: CreateCardToken) => Promise; setAmountValue: (amountValue: string) => void; checkCardDigits: (cardNumber: string) => void; months: OptionsProps[]; years: OptionsProps[]; }; declare function formatBankSlipNumber(value: string): string; declare function isValidCPF(strCPF: string): boolean; export { useMercadoPago, isValidCPF, formatBankSlipNumber };