//#region src/get-area-codes-by-state/get-area-codes-by-state.d.ts /** * Retrieves every DDD (area code) that serves a given Brazilian state, under the Plano Geral * de Numeração. * * The match is case-insensitive, so `"sp"` and `"SP"` both resolve to the same list. The * result is sorted in ascending order and is a fresh array on every call. * * A DDD that straddles a state border is listed under every state it serves, so DDD 61 comes * back for both `"DF"` and `"GO"`: it serves the Distrito Federal and the twelve Goiás * municipalities of the Entorno do Distrito Federal. The other three are 42, shared by Paraná * and Porto União (SC), 47, shared by Santa Catarina and Rio Negro (PR), and 49, shared by * Santa Catarina and Barracão (PR). * * @param {string} stateCode - The two-letter code (sigla) of the state. * @returns {number[]} The DDDs of the state, sorted ascending, or an empty array when * `stateCode` does not match any Brazilian state. * * @example * ```typescript * getAreaCodesByState("SP"); // [11, 12, 13, 14, 15, 16, 17, 18, 19] * getAreaCodesByState("sp"); // [11, 12, 13, 14, 15, 16, 17, 18, 19] * getAreaCodesByState("AC"); // [68] * getAreaCodesByState("DF"); // [61] * getAreaCodesByState("GO"); // [61, 62, 64] * getAreaCodesByState("XX"); // [] * ``` * * Resolução Anatel nº 749/2022, art. 15, defines the Código Nacional (area code). The Anexo the * gov.br page below links to, giving the Código Nacional of every municipality, is the one this * inverse lookup was derived from and is no longer in force. * * @see Official: https://informacoes.anatel.gov.br/legislacao/resolucoes/2022/1641-resolucao-749 * @see Official: https://www.gov.br/anatel/pt-br/regulado/numeracao/codigos-nacionais * @see Based on: https://informacoes.anatel.gov.br/legislacao/resolucoes/2001/383-resolucao-263 * Anexo of Resolução nº 263/2001, revoked, and still the table Anatel's page links to. */ export declare const getAreaCodesByState: (stateCode: string) => number[]; //#endregion