UNPKG

correios-webservice

Version:
29 lines (28 loc) 751 B
import { Auth } from "../auth"; import { ClientConfig } from "../client"; import { Endpoint } from "../endpoint"; interface PostcodeAddressResponse { cep: string; uf: string; numeroLocalidade: number; localidade: string; logradouro: string; tipoLogradouro: string; nomeLogradouro: string; complemento: string; abreviatura: string; bairro: string; tipoCEP: number; lado: string; numeroInicial: number; numeroFinal: number; } declare class Address extends Endpoint { get(postcode: string): Promise<PostcodeAddressResponse>; protected getPrefix(): string; } declare class Postcode { enderecos: Address; constructor(auth: Auth, config: ClientConfig); } export { Postcode, Address };