type DocumentFormat = 'numeric' | 'alphanumeric' | 'legacy' | 'mercosul' | 'email' | 'phone' | 'evp' | 'linha-digitavel' | 'codigo-barras' | 'cartao-credito' | 'inscricao-estadual'; type PixKeyType = 'cpf' | 'cnpj' | 'email' | 'phone' | 'evp'; type BoletoInputKind = 'linha-digitavel' | 'codigo-barras'; type ValidationErrorCode = 'INVALID_LENGTH' | 'INVALID_CHARACTER' | 'INVALID_CHECK_DIGIT' | 'KNOWN_INVALID_PATTERN' | 'UNSUPPORTED_FORMAT' | 'EMPTY_INPUT'; type ValidationResult = { ok: true; value: T; format: DocumentFormat; } | { ok: false; code: ValidationErrorCode; message: string; }; type FormatResult = { ok: true; formatted: string; } | { ok: false; code: ValidationErrorCode; message: string; }; type Cnpj = string & { readonly __brand: 'Cnpj'; }; type Cpf = string & { readonly __brand: 'Cpf'; }; type Cep = string & { readonly __brand: 'Cep'; }; type Placa = string & { readonly __brand: 'Placa'; }; type PisPasep = string & { readonly __brand: 'PisPasep'; }; type PixKey = string & { readonly __brand: 'PixKey'; }; type LinhaDigitavel = string & { readonly __brand: 'LinhaDigitavel'; }; type CodigoBarras = string & { readonly __brand: 'CodigoBarras'; }; type CartaoCredito = string & { readonly __brand: 'CartaoCredito'; }; type InscricaoEstadual = string & { readonly __brand: 'InscricaoEstadual'; }; type UfCode = 'AC' | 'AL' | 'AM' | 'AP' | 'BA' | 'CE' | 'DF' | 'ES' | 'GO' | 'MA' | 'MG' | 'MS' | 'MT' | 'PA' | 'PB' | 'PE' | 'PI' | 'PR' | 'RJ' | 'RN' | 'RO' | 'RR' | 'RS' | 'SC' | 'SE' | 'SP' | 'TO'; type CardBrand = 'visa' | 'mastercard' | 'amex' | 'elo' | 'hipercard' | 'unknown'; type CartaoCreditoValidationResult = { ok: true; value: CartaoCredito; format: 'cartao-credito'; brand: CardBrand; } | { ok: false; code: ValidationErrorCode; message: string; brand?: CardBrand; }; type PixValidationResult = { ok: true; value: PixKey; keyType: PixKeyType; format: DocumentFormat; } | { ok: false; code: ValidationErrorCode; message: string; keyType?: PixKeyType; }; type BoletoSituacao = '1' | '2'; type BoletoValidationResult = { ok: true; value: LinhaDigitavel | CodigoBarras; inputKind: BoletoInputKind; format: DocumentFormat; situacao: BoletoSituacao; } | { ok: false; code: ValidationErrorCode; message: string; inputKind?: BoletoInputKind; }; type InscricaoEstadualValidationResult = { ok: true; value: InscricaoEstadual; uf: UfCode; format: 'inscricao-estadual'; } | { ok: false; code: ValidationErrorCode; message: string; uf?: UfCode; }; export type { BoletoInputKind as B, CartaoCredito as C, DocumentFormat as D, FormatResult as F, InscricaoEstadual as I, LinhaDigitavel as L, PisPasep as P, UfCode as U, ValidationErrorCode as V, BoletoSituacao as a, BoletoValidationResult as b, CartaoCreditoValidationResult as c, Cep as d, Cnpj as e, CodigoBarras as f, Cpf as g, InscricaoEstadualValidationResult as h, PixKey as i, PixKeyType as j, PixValidationResult as k, Placa as l, ValidationResult as m };