//#region src/format-caepf/format-caepf.d.ts /** Options of `formatCaepf`. */ export type FormatCaepfOptions = { /** Whether to left pad the value with zeros up to the number of slots in the pattern (default: `false`). */ pad?: boolean; }; /** * Formats a CAEPF (Cadastro de Atividade Econômica da Pessoa Física) number according to the * official mask. * * 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 CAEPF value to be formatted. * @param {FormatCaepfOptions} [options] - Optional formatting options. * @param {boolean} [options.pad] - Whether to pad the value with leading zeros up to 14 digits. * @returns {string} The formatted CAEPF string in the pattern "000.000.000/000-00", or an * empty string when there is nothing to format. * * @example * ```typescript * formatCaepf("29311861000184"); // "293.118.610/001-84" * formatCaepf(41142260000101); // "411.422.600/001-01" * formatCaepf("184", { pad: true }); // "000.000.000/001-84" * formatCaepf("184"); // "184" * ``` * * @see Official: https://www.gov.br/receitafederal/pt-br/assuntos/orientacao-tributaria/cadastros/caepf * 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 sources cited by `isValidCaepf` agree on. */ export declare const formatCaepf: (value: string | number, options?: FormatCaepfOptions) => string; //#endregion