//#region src/format-cei/format-cei.d.ts /** Options of `formatCei`. */ export type FormatCeiOptions = { /** Whether to left pad the value with zeros up to the number of slots in the pattern (default: `false`). */ pad?: boolean; }; /** * Formats a CEI (Cadastro EspecĂ­fico do INSS) number according to the usual "00.000.00000/00" * mask, the one the reference implementations of the check digit agree on (the Receita Federal * does not print it). * * Formats progressively, as far as the digits given go, so it can also be used as an input * mask while the user is still typing. * * @param {string|number} value - The CEI value to be formatted. * @param {FormatCeiOptions} [options] - Optional formatting options. * @param {boolean} [options.pad] - Whether to pad the value with leading zeros up to 12 digits. * @returns {string} The formatted CEI string in the pattern "00.000.00000/00", or an empty * string when there is nothing to format. * * @example * ```typescript * formatCei("277297118187"); // "27.729.71181/87" * formatCei(249859674386); // "24.985.96743/86" * formatCei("249", { pad: true }); // "00.000.00002/49" * formatCei("249"); // "24.9" * ``` * * @see Official: https://www.gov.br/receitafederal/pt-br/assuntos/orientacao-tributaria/cadastros/cno * The registry's own page at the Receita Federal, which describes the cadastro but does not * print the mask; the mask below is the one the two reference implementations of the check * digit cited by `isValidCei` agree on. */ export declare const formatCei: (value: string | number, options?: FormatCeiOptions) => string; //#endregion