import { t as Municipality } from "./cities-B8mwF_PF.cjs"; //#region src/get-municipality-by-code/get-municipality-by-code.d.ts /** * Looks up a Brazilian municipality by its 7 digit IBGE code, published by the IBGE. * * A `code` given as a number must be a non-negative integer: a sign and a decimal point are * not digits, so `-3550308` and `355030.8` are rejected instead of being read as `3550308`. * * @param {string|number} code - The 7 digit IBGE municipality code, as a string or a number. * @returns {Municipality|null} A fresh copy of the matching municipality, or `null` when * `code` is not a 7 digit code or does not match any known municipality. * * @example * ```typescript * getMunicipalityByCode("3550308"); // { code: "3550308", name: "São Paulo", stateCode: "SP" } * getMunicipalityByCode(3550308); // { code: "3550308", name: "São Paulo", stateCode: "SP" } * getMunicipalityByCode("0000000"); // null * ``` * * @see Official: https://servicodados.ibge.gov.br/api/docs/localidades */ export declare const getMunicipalityByCode: (code: string | number) => Municipality | null; //#endregion export type { Municipality };