/** * Pure helpers used by `mud-receipt`. Extracted so they can be unit-tested * without rendering the component. */ import type { LogoName } from '../mud-logo/mud-logo.types'; import type { TagSemantic } from '../mud-tag/mud-tag.types'; import type { ReceiptService, ReceiptStatus } from './mud-receipt.types'; /** * Mask a Moldovan IDNP: keep the first 4 and last 3 digits, replace the * middle 6 with asterisks. Input that does not look like a 13-digit IDNP * is returned unchanged (the receipt is a presentation surface; validation * belongs upstream). * * "2002003456789" → "2002******789" */ export declare const maskIdnp: (idnp: string | undefined) => string; /** * Format an ISO date or a Date as a Romanian-locale string. Falls back to * the raw input on a parse failure. * * "2026-05-22T14:32:00Z" → "22 mai 2026, 14:32" */ export declare const formatReceiptDate: (date: string | undefined, locale?: string) => string; /** * Mapping from service → mud-logo asset name (`with-name` layout). * Centralized so the component, stories, and tests cannot drift. */ export declare const SERVICE_LOGO_NAME: Record; /** * Default Romanian receipt title per service. Overridable via `title` prop. */ export declare const SERVICE_DEFAULT_TITLE: Record; /** * Mapping from status → mud-tag semantic role. * mud-tag's semantic vocabulary uses `success` (not `positive`); the * Romanian convention `Plătit` maps to the success token surface. */ export declare const STATUS_TAG_SEMANTIC: Record; /** * Mapping from status → Romanian label rendered inside the tag. */ export declare const STATUS_DEFAULT_LABEL: Record;