@stdbr/wasm 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +22 -0
- package/package.json +32 -0
- package/stdbr_wasm.d.ts +509 -0
- package/stdbr_wasm.js +1786 -0
- package/stdbr_wasm_bg.wasm +0 -0
package/stdbr_wasm.d.ts
ADDED
|
@@ -0,0 +1,509 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Lenient CEP validation (strips non-digit characters first).
|
|
5
|
+
*/
|
|
6
|
+
export function cepIsValid(cep: string): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Strict CEP validation (accepts only `#####-###` or `########`).
|
|
9
|
+
*/
|
|
10
|
+
export function cepIsValidStrict(cep: string): void;
|
|
11
|
+
/**
|
|
12
|
+
* Format a CEP string as `#####-###`.
|
|
13
|
+
* Returns `undefined` if the input doesn't contain exactly 8 digits.
|
|
14
|
+
*/
|
|
15
|
+
export function cepFormat(cep: string): string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Remove all non-digit characters from a CEP string.
|
|
18
|
+
*/
|
|
19
|
+
export function cepRemoveSymbols(cep: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* Generate a random valid CEP as an 8-digit string.
|
|
22
|
+
*/
|
|
23
|
+
export function cepGenerate(): string;
|
|
24
|
+
/**
|
|
25
|
+
* Generate a random CEP for a given postal region.
|
|
26
|
+
*/
|
|
27
|
+
export function cepGenerateForRegion(region: PostalRegion): string;
|
|
28
|
+
/**
|
|
29
|
+
* Generate a random CEP within the range of a given state.
|
|
30
|
+
*/
|
|
31
|
+
export function cepGenerateForState(state: State): string;
|
|
32
|
+
/**
|
|
33
|
+
* Lenient CNPJ validation (strips non-alphanumeric characters first).
|
|
34
|
+
*/
|
|
35
|
+
export function cnpjIsValid(cnpj: string): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Strict CNPJ validation (accepts only `XX.XXX.XXX/XXXX-DD` or 14 raw characters).
|
|
38
|
+
*/
|
|
39
|
+
export function cnpjIsValidStrict(cnpj: string): void;
|
|
40
|
+
/**
|
|
41
|
+
* Format a CNPJ string as `XX.XXX.XXX/XXXX-DD`.
|
|
42
|
+
* Returns `undefined` if the input is not a valid 14-character CNPJ.
|
|
43
|
+
*/
|
|
44
|
+
export function cnpjFormat(cnpj: string): string | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Remove all non-alphanumeric characters from a CNPJ string, uppercase.
|
|
47
|
+
*/
|
|
48
|
+
export function cnpjRemoveSymbols(cnpj: string): string;
|
|
49
|
+
/**
|
|
50
|
+
* Generate a random valid CNPJ as a 14-character string.
|
|
51
|
+
*/
|
|
52
|
+
export function cnpjGenerate(kind: CnpjKind): string;
|
|
53
|
+
/**
|
|
54
|
+
* Compute check digits for a 12-character CNPJ base.
|
|
55
|
+
* Returns `undefined` if the input is invalid.
|
|
56
|
+
*/
|
|
57
|
+
export function cnpjComputeCheckDigits(base: string): Uint8Array | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Lenient CPF validation (strips non-digit characters first).
|
|
60
|
+
*/
|
|
61
|
+
export function cpfIsValid(cpf: string): boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Strict CPF validation (accepts only `###.###.###-##` or `###########`).
|
|
64
|
+
*/
|
|
65
|
+
export function cpfIsValidStrict(cpf: string): void;
|
|
66
|
+
/**
|
|
67
|
+
* Format a CPF string as `###.###.###-##`.
|
|
68
|
+
* Returns `undefined` if the input doesn't contain exactly 11 digits.
|
|
69
|
+
*/
|
|
70
|
+
export function cpfFormat(cpf: string): string | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Remove all non-digit characters from a CPF string.
|
|
73
|
+
*/
|
|
74
|
+
export function cpfRemoveSymbols(cpf: string): string;
|
|
75
|
+
/**
|
|
76
|
+
* Generate a random valid CPF as an 11-digit string.
|
|
77
|
+
*/
|
|
78
|
+
export function cpfGenerate(): string;
|
|
79
|
+
/**
|
|
80
|
+
* Compute check digits for a 9-digit CPF base.
|
|
81
|
+
* Returns `undefined` if the input is invalid.
|
|
82
|
+
*/
|
|
83
|
+
export function cpfComputeCheckDigits(base: string): Uint8Array | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Find a municipality by its IBGE code.
|
|
86
|
+
*/
|
|
87
|
+
export function municipioFromIbgeCode(code: number): Municipio | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Get the capital of a given state.
|
|
90
|
+
*/
|
|
91
|
+
export function municipioCapitalOf(state: State): Municipio;
|
|
92
|
+
/**
|
|
93
|
+
* Returns all municipalities in a given state.
|
|
94
|
+
*/
|
|
95
|
+
export function municipiosByState(state: State): MunicipioList;
|
|
96
|
+
/**
|
|
97
|
+
* Find municipalities whose name contains the given substring (case-insensitive).
|
|
98
|
+
*/
|
|
99
|
+
export function municipioSearchByName(query: string): MunicipioList;
|
|
100
|
+
/**
|
|
101
|
+
* Total number of municipalities.
|
|
102
|
+
*/
|
|
103
|
+
export function municipioCount(): number;
|
|
104
|
+
export function rgIsValid(rg: string, uf: State): boolean;
|
|
105
|
+
export function rgIsValidStrict(rg: string, uf: State): void;
|
|
106
|
+
export function rgFormat(rg: string, uf: State): string | undefined;
|
|
107
|
+
export function rgRemoveSymbols(rg: string, uf: State): string;
|
|
108
|
+
export function rgComputeCheckDigit(base: string, uf: State): number | undefined;
|
|
109
|
+
export function rgGenerate(uf: State): string;
|
|
110
|
+
/**
|
|
111
|
+
* Get the abbreviation of a state (e.g. "SP").
|
|
112
|
+
*/
|
|
113
|
+
export function stateAbbreviation(state: State): string;
|
|
114
|
+
/**
|
|
115
|
+
* Get the full name of a state (e.g. "São Paulo").
|
|
116
|
+
*/
|
|
117
|
+
export function stateName(state: State): string;
|
|
118
|
+
/**
|
|
119
|
+
* Get the geographic region of a state.
|
|
120
|
+
*/
|
|
121
|
+
export function stateRegion(state: State): Region;
|
|
122
|
+
/**
|
|
123
|
+
* Parse a state from its two-letter abbreviation (case-insensitive).
|
|
124
|
+
*/
|
|
125
|
+
export function stateFromAbbreviation(abbr: string): State | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* Returns all 27 Brazilian states.
|
|
128
|
+
*/
|
|
129
|
+
export function allStates(): any[];
|
|
130
|
+
export enum CnpjKind {
|
|
131
|
+
Numeric = 0,
|
|
132
|
+
Alphanumeric = 1,
|
|
133
|
+
}
|
|
134
|
+
export enum EstablishmentType {
|
|
135
|
+
Matriz = 0,
|
|
136
|
+
Filial = 1,
|
|
137
|
+
}
|
|
138
|
+
export enum FiscalRegion {
|
|
139
|
+
Rs = 0,
|
|
140
|
+
DfGoMsMtTo = 1,
|
|
141
|
+
AcAmApPaRoRr = 2,
|
|
142
|
+
CeMaPi = 3,
|
|
143
|
+
AlPbPeRn = 4,
|
|
144
|
+
BaSe = 5,
|
|
145
|
+
Mg = 6,
|
|
146
|
+
EsRj = 7,
|
|
147
|
+
Sp = 8,
|
|
148
|
+
PrSc = 9,
|
|
149
|
+
}
|
|
150
|
+
export enum PostalRegion {
|
|
151
|
+
GranSaoPaulo = 0,
|
|
152
|
+
InteriorSaoPaulo = 1,
|
|
153
|
+
RjEs = 2,
|
|
154
|
+
Mg = 3,
|
|
155
|
+
BaSe = 4,
|
|
156
|
+
PeAlPbRn = 5,
|
|
157
|
+
CePiMaPaAmAcApRr = 6,
|
|
158
|
+
DfGoToMtMsRo = 7,
|
|
159
|
+
PrSc = 8,
|
|
160
|
+
Rs = 9,
|
|
161
|
+
}
|
|
162
|
+
export enum Region {
|
|
163
|
+
Norte = 0,
|
|
164
|
+
Nordeste = 1,
|
|
165
|
+
CentroOeste = 2,
|
|
166
|
+
Sudeste = 3,
|
|
167
|
+
Sul = 4,
|
|
168
|
+
}
|
|
169
|
+
export enum State {
|
|
170
|
+
AC = 0,
|
|
171
|
+
AL = 1,
|
|
172
|
+
AM = 2,
|
|
173
|
+
AP = 3,
|
|
174
|
+
BA = 4,
|
|
175
|
+
CE = 5,
|
|
176
|
+
DF = 6,
|
|
177
|
+
ES = 7,
|
|
178
|
+
GO = 8,
|
|
179
|
+
MA = 9,
|
|
180
|
+
MG = 10,
|
|
181
|
+
MS = 11,
|
|
182
|
+
MT = 12,
|
|
183
|
+
PA = 13,
|
|
184
|
+
PB = 14,
|
|
185
|
+
PE = 15,
|
|
186
|
+
PI = 16,
|
|
187
|
+
PR = 17,
|
|
188
|
+
RJ = 18,
|
|
189
|
+
RN = 19,
|
|
190
|
+
RO = 20,
|
|
191
|
+
RR = 21,
|
|
192
|
+
RS = 22,
|
|
193
|
+
SC = 23,
|
|
194
|
+
SE = 24,
|
|
195
|
+
SP = 25,
|
|
196
|
+
TO = 26,
|
|
197
|
+
}
|
|
198
|
+
export class Cep {
|
|
199
|
+
private constructor();
|
|
200
|
+
free(): void;
|
|
201
|
+
[Symbol.dispose](): void;
|
|
202
|
+
/**
|
|
203
|
+
* Parse a CEP string (accepts `#####-###` or `########`).
|
|
204
|
+
*/
|
|
205
|
+
static parse(raw: string): Cep;
|
|
206
|
+
/**
|
|
207
|
+
* Generate a random valid CEP.
|
|
208
|
+
*/
|
|
209
|
+
static generate(): Cep;
|
|
210
|
+
/**
|
|
211
|
+
* Generate a random CEP for a given postal region.
|
|
212
|
+
*/
|
|
213
|
+
static generateForRegion(region: PostalRegion): Cep;
|
|
214
|
+
/**
|
|
215
|
+
* Generate a random CEP within the range of a given state.
|
|
216
|
+
*/
|
|
217
|
+
static generateForState(state: State): Cep;
|
|
218
|
+
/**
|
|
219
|
+
* Unformatted 8-digit string.
|
|
220
|
+
*/
|
|
221
|
+
asStr(): string;
|
|
222
|
+
/**
|
|
223
|
+
* Formatted as `#####-###`.
|
|
224
|
+
*/
|
|
225
|
+
formatted(): string;
|
|
226
|
+
/**
|
|
227
|
+
* Masked as `#####-***`.
|
|
228
|
+
*/
|
|
229
|
+
masked(): string;
|
|
230
|
+
/**
|
|
231
|
+
* Postal region derived from the 1st digit.
|
|
232
|
+
*/
|
|
233
|
+
readonly postalRegion: PostalRegion;
|
|
234
|
+
/**
|
|
235
|
+
* State lookup by CEP range. Returns the state abbreviation or undefined.
|
|
236
|
+
*/
|
|
237
|
+
readonly state: State | undefined;
|
|
238
|
+
}
|
|
239
|
+
export class Cnpj {
|
|
240
|
+
private constructor();
|
|
241
|
+
free(): void;
|
|
242
|
+
[Symbol.dispose](): void;
|
|
243
|
+
/**
|
|
244
|
+
* Parse a CNPJ string (accepts `XX.XXX.XXX/XXXX-DD` or 14 raw characters).
|
|
245
|
+
*/
|
|
246
|
+
static parse(raw: string): Cnpj;
|
|
247
|
+
/**
|
|
248
|
+
* Generate a random valid CNPJ.
|
|
249
|
+
*/
|
|
250
|
+
static generate(kind: CnpjKind): Cnpj;
|
|
251
|
+
/**
|
|
252
|
+
* Generate a random valid CNPJ with ordem "0001" (Matriz).
|
|
253
|
+
*/
|
|
254
|
+
static generateMatriz(kind: CnpjKind): Cnpj;
|
|
255
|
+
/**
|
|
256
|
+
* Unformatted 14-character string.
|
|
257
|
+
*/
|
|
258
|
+
asStr(): string;
|
|
259
|
+
/**
|
|
260
|
+
* Formatted as `XX.XXX.XXX/XXXX-DD`.
|
|
261
|
+
*/
|
|
262
|
+
formatted(): string;
|
|
263
|
+
/**
|
|
264
|
+
* Masked as `XX.XXX.XXX/****-**`.
|
|
265
|
+
*/
|
|
266
|
+
masked(): string;
|
|
267
|
+
/**
|
|
268
|
+
* Root (positions 1-8): identifies the company.
|
|
269
|
+
*/
|
|
270
|
+
raiz(): string;
|
|
271
|
+
/**
|
|
272
|
+
* Order (positions 9-12): identifies the establishment.
|
|
273
|
+
*/
|
|
274
|
+
ordem(): string;
|
|
275
|
+
/**
|
|
276
|
+
* Whether the CNPJ is numeric or alphanumeric.
|
|
277
|
+
*/
|
|
278
|
+
readonly kind: CnpjKind;
|
|
279
|
+
/**
|
|
280
|
+
* Whether this is Matriz or Filial.
|
|
281
|
+
*/
|
|
282
|
+
readonly establishmentType: EstablishmentType;
|
|
283
|
+
/**
|
|
284
|
+
* The two check digits as `Uint8Array`.
|
|
285
|
+
*/
|
|
286
|
+
readonly checkDigits: Uint8Array;
|
|
287
|
+
}
|
|
288
|
+
export class Cpf {
|
|
289
|
+
private constructor();
|
|
290
|
+
free(): void;
|
|
291
|
+
[Symbol.dispose](): void;
|
|
292
|
+
/**
|
|
293
|
+
* Parse a CPF string (accepts `###.###.###-##` or `###########`).
|
|
294
|
+
*/
|
|
295
|
+
static parse(raw: string): Cpf;
|
|
296
|
+
/**
|
|
297
|
+
* Generate a random valid CPF.
|
|
298
|
+
*/
|
|
299
|
+
static generate(): Cpf;
|
|
300
|
+
/**
|
|
301
|
+
* Generate a random valid CPF for a specific fiscal region.
|
|
302
|
+
*/
|
|
303
|
+
static generateForRegion(region: FiscalRegion): Cpf;
|
|
304
|
+
/**
|
|
305
|
+
* Unformatted 11-digit string.
|
|
306
|
+
*/
|
|
307
|
+
asStr(): string;
|
|
308
|
+
/**
|
|
309
|
+
* Formatted as `###.###.###-##`.
|
|
310
|
+
*/
|
|
311
|
+
formatted(): string;
|
|
312
|
+
/**
|
|
313
|
+
* Masked as `XXX.***.***-XX`.
|
|
314
|
+
*/
|
|
315
|
+
masked(): string;
|
|
316
|
+
/**
|
|
317
|
+
* Fiscal region derived from the 9th digit.
|
|
318
|
+
*/
|
|
319
|
+
readonly fiscalRegion: FiscalRegion;
|
|
320
|
+
/**
|
|
321
|
+
* The two check digits as `Uint8Array`.
|
|
322
|
+
*/
|
|
323
|
+
readonly checkDigits: Uint8Array;
|
|
324
|
+
}
|
|
325
|
+
export class Municipio {
|
|
326
|
+
private constructor();
|
|
327
|
+
free(): void;
|
|
328
|
+
[Symbol.dispose](): void;
|
|
329
|
+
/**
|
|
330
|
+
* IBGE 7-digit code.
|
|
331
|
+
*/
|
|
332
|
+
readonly ibgeCode: number;
|
|
333
|
+
/**
|
|
334
|
+
* Municipality name.
|
|
335
|
+
*/
|
|
336
|
+
readonly name: string;
|
|
337
|
+
/**
|
|
338
|
+
* State this municipality belongs to.
|
|
339
|
+
*/
|
|
340
|
+
readonly state: State;
|
|
341
|
+
/**
|
|
342
|
+
* Whether this municipality is a state capital.
|
|
343
|
+
*/
|
|
344
|
+
readonly isCapital: boolean;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Opaque list of municipalities for collection results.
|
|
348
|
+
*/
|
|
349
|
+
export class MunicipioList {
|
|
350
|
+
private constructor();
|
|
351
|
+
free(): void;
|
|
352
|
+
[Symbol.dispose](): void;
|
|
353
|
+
/**
|
|
354
|
+
* Get a municipality by index. Returns `undefined` if out of bounds.
|
|
355
|
+
*/
|
|
356
|
+
get(index: number): Municipio | undefined;
|
|
357
|
+
/**
|
|
358
|
+
* Number of municipalities in the list.
|
|
359
|
+
*/
|
|
360
|
+
readonly count: number;
|
|
361
|
+
}
|
|
362
|
+
export class Rg {
|
|
363
|
+
private constructor();
|
|
364
|
+
free(): void;
|
|
365
|
+
[Symbol.dispose](): void;
|
|
366
|
+
/**
|
|
367
|
+
* Parse an RG string for the given UF.
|
|
368
|
+
*/
|
|
369
|
+
static parse(raw: string, uf: State): Rg;
|
|
370
|
+
/**
|
|
371
|
+
* Generate a random valid RG. Currently SP only.
|
|
372
|
+
*/
|
|
373
|
+
static generate(uf: State): Rg;
|
|
374
|
+
/**
|
|
375
|
+
* Unformatted body.
|
|
376
|
+
*/
|
|
377
|
+
asStr(): string;
|
|
378
|
+
/**
|
|
379
|
+
* Formatted per the UF mask.
|
|
380
|
+
*/
|
|
381
|
+
formatted(): string;
|
|
382
|
+
/**
|
|
383
|
+
* Masked representation — first 2 digits visible, rest masked.
|
|
384
|
+
*/
|
|
385
|
+
masked(): string;
|
|
386
|
+
/**
|
|
387
|
+
* Body without check digit (SP: 8-digit base; others: full string).
|
|
388
|
+
*/
|
|
389
|
+
body(): string;
|
|
390
|
+
readonly uf: State;
|
|
391
|
+
/**
|
|
392
|
+
* Check digit (`0..=9`, `10` for SP `'X'`, `undefined` otherwise).
|
|
393
|
+
*/
|
|
394
|
+
readonly checkDigit: number | undefined;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
398
|
+
|
|
399
|
+
export interface InitOutput {
|
|
400
|
+
readonly memory: WebAssembly.Memory;
|
|
401
|
+
readonly __wbg_cep_free: (a: number, b: number) => void;
|
|
402
|
+
readonly cep_parse: (a: number, b: number, c: number) => void;
|
|
403
|
+
readonly cep_generate: () => number;
|
|
404
|
+
readonly cep_generateForRegion: (a: number) => number;
|
|
405
|
+
readonly cep_generateForState: (a: number) => number;
|
|
406
|
+
readonly cep_asStr: (a: number, b: number) => void;
|
|
407
|
+
readonly cep_formatted: (a: number, b: number) => void;
|
|
408
|
+
readonly cep_masked: (a: number, b: number) => void;
|
|
409
|
+
readonly cep_postalRegion: (a: number) => number;
|
|
410
|
+
readonly cep_state: (a: number) => number;
|
|
411
|
+
readonly cepIsValid: (a: number, b: number) => number;
|
|
412
|
+
readonly cepIsValidStrict: (a: number, b: number, c: number) => void;
|
|
413
|
+
readonly cepFormat: (a: number, b: number, c: number) => void;
|
|
414
|
+
readonly cepRemoveSymbols: (a: number, b: number, c: number) => void;
|
|
415
|
+
readonly cepGenerate: (a: number) => void;
|
|
416
|
+
readonly cepGenerateForRegion: (a: number, b: number) => void;
|
|
417
|
+
readonly cepGenerateForState: (a: number, b: number) => void;
|
|
418
|
+
readonly __wbg_cnpj_free: (a: number, b: number) => void;
|
|
419
|
+
readonly cnpj_parse: (a: number, b: number, c: number) => void;
|
|
420
|
+
readonly cnpj_generate: (a: number) => number;
|
|
421
|
+
readonly cnpj_generateMatriz: (a: number) => number;
|
|
422
|
+
readonly cnpj_asStr: (a: number, b: number) => void;
|
|
423
|
+
readonly cnpj_formatted: (a: number, b: number) => void;
|
|
424
|
+
readonly cnpj_masked: (a: number, b: number) => void;
|
|
425
|
+
readonly cnpj_raiz: (a: number, b: number) => void;
|
|
426
|
+
readonly cnpj_ordem: (a: number, b: number) => void;
|
|
427
|
+
readonly cnpj_kind: (a: number) => number;
|
|
428
|
+
readonly cnpj_establishmentType: (a: number) => number;
|
|
429
|
+
readonly cnpj_checkDigits: (a: number, b: number) => void;
|
|
430
|
+
readonly cnpjIsValid: (a: number, b: number) => number;
|
|
431
|
+
readonly cnpjIsValidStrict: (a: number, b: number, c: number) => void;
|
|
432
|
+
readonly cnpjFormat: (a: number, b: number, c: number) => void;
|
|
433
|
+
readonly cnpjRemoveSymbols: (a: number, b: number, c: number) => void;
|
|
434
|
+
readonly cnpjGenerate: (a: number, b: number) => void;
|
|
435
|
+
readonly cnpjComputeCheckDigits: (a: number, b: number, c: number) => void;
|
|
436
|
+
readonly __wbg_cpf_free: (a: number, b: number) => void;
|
|
437
|
+
readonly cpf_parse: (a: number, b: number, c: number) => void;
|
|
438
|
+
readonly cpf_generate: () => number;
|
|
439
|
+
readonly cpf_generateForRegion: (a: number) => number;
|
|
440
|
+
readonly cpf_asStr: (a: number, b: number) => void;
|
|
441
|
+
readonly cpf_formatted: (a: number, b: number) => void;
|
|
442
|
+
readonly cpf_masked: (a: number, b: number) => void;
|
|
443
|
+
readonly cpf_fiscalRegion: (a: number) => number;
|
|
444
|
+
readonly cpf_checkDigits: (a: number, b: number) => void;
|
|
445
|
+
readonly cpfIsValid: (a: number, b: number) => number;
|
|
446
|
+
readonly cpfIsValidStrict: (a: number, b: number, c: number) => void;
|
|
447
|
+
readonly cpfFormat: (a: number, b: number, c: number) => void;
|
|
448
|
+
readonly cpfRemoveSymbols: (a: number, b: number, c: number) => void;
|
|
449
|
+
readonly cpfGenerate: (a: number) => void;
|
|
450
|
+
readonly cpfComputeCheckDigits: (a: number, b: number, c: number) => void;
|
|
451
|
+
readonly __wbg_municipio_free: (a: number, b: number) => void;
|
|
452
|
+
readonly municipio_ibgeCode: (a: number) => number;
|
|
453
|
+
readonly municipio_name: (a: number, b: number) => void;
|
|
454
|
+
readonly municipio_state: (a: number) => number;
|
|
455
|
+
readonly municipio_isCapital: (a: number) => number;
|
|
456
|
+
readonly __wbg_municipiolist_free: (a: number, b: number) => void;
|
|
457
|
+
readonly municipiolist_count: (a: number) => number;
|
|
458
|
+
readonly municipiolist_get: (a: number, b: number) => number;
|
|
459
|
+
readonly municipioFromIbgeCode: (a: number) => number;
|
|
460
|
+
readonly municipioCapitalOf: (a: number) => number;
|
|
461
|
+
readonly municipiosByState: (a: number) => number;
|
|
462
|
+
readonly municipioSearchByName: (a: number, b: number) => number;
|
|
463
|
+
readonly municipioCount: () => number;
|
|
464
|
+
readonly rg_parse: (a: number, b: number, c: number, d: number) => void;
|
|
465
|
+
readonly rg_generate: (a: number, b: number) => void;
|
|
466
|
+
readonly rg_asStr: (a: number, b: number) => void;
|
|
467
|
+
readonly rg_formatted: (a: number, b: number) => void;
|
|
468
|
+
readonly rg_masked: (a: number, b: number) => void;
|
|
469
|
+
readonly rg_body: (a: number, b: number) => void;
|
|
470
|
+
readonly rg_uf: (a: number) => number;
|
|
471
|
+
readonly rg_checkDigit: (a: number) => number;
|
|
472
|
+
readonly rgIsValid: (a: number, b: number, c: number) => number;
|
|
473
|
+
readonly rgIsValidStrict: (a: number, b: number, c: number, d: number) => void;
|
|
474
|
+
readonly rgFormat: (a: number, b: number, c: number, d: number) => void;
|
|
475
|
+
readonly rgRemoveSymbols: (a: number, b: number, c: number, d: number) => void;
|
|
476
|
+
readonly rgComputeCheckDigit: (a: number, b: number, c: number) => number;
|
|
477
|
+
readonly rgGenerate: (a: number, b: number) => void;
|
|
478
|
+
readonly stateAbbreviation: (a: number, b: number) => void;
|
|
479
|
+
readonly stateName: (a: number, b: number) => void;
|
|
480
|
+
readonly stateRegion: (a: number) => number;
|
|
481
|
+
readonly stateFromAbbreviation: (a: number, b: number) => number;
|
|
482
|
+
readonly allStates: (a: number) => void;
|
|
483
|
+
readonly __wbg_rg_free: (a: number, b: number) => void;
|
|
484
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
485
|
+
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
486
|
+
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
487
|
+
readonly __wbindgen_export3: (a: number, b: number, c: number) => void;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
491
|
+
/**
|
|
492
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
493
|
+
* a precompiled `WebAssembly.Module`.
|
|
494
|
+
*
|
|
495
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
496
|
+
*
|
|
497
|
+
* @returns {InitOutput}
|
|
498
|
+
*/
|
|
499
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
503
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
504
|
+
*
|
|
505
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
506
|
+
*
|
|
507
|
+
* @returns {Promise<InitOutput>}
|
|
508
|
+
*/
|
|
509
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|