/** * The `time` mask, as a {@link MaskResolver}. * * Like `./mask-date.ts`, a resolver rather than an engine branch — same public * contract as anything you write yourself. * * Ported from `cleave.js@1.6.0` (`shortcuts/TimeFormatter.js`) with the * corrections marked DEVIATION below. */ import type { MaskResolver, MaskTimeOptions, MaskTimeToken } from '@/types'; /** Every time block is two digits wide. */ export declare const timeBlocks: (tokens?: readonly MaskTimeToken[]) => number[]; /** * Builds the `time` mask. * * `` is shorthand for this. * * @param options - Pattern tokens, delimiters and 12- or 24-hour clamping. * * @example * ```tsx * const duration = createTimeMask({ time: true, timePattern: ['h', 'm', 's'] }); * save(meta.iso)} /> * ``` */ export declare const createTimeMask: (options: MaskTimeOptions) => MaskResolver;