import { type CustomPatterns } from './internal/cursor.js'; import { type OnValueChange } from './internal/values.js'; interface Props { value?: string | null; format?: string; name?: string; form?: string; disabled?: boolean; maskChar?: string; placeholder?: string; customPatterns?: CustomPatterns; allowEmptyFormatting?: boolean; /** Pure predicate over the raw (unmasked) value; runs only when the mask is completely filled. */ validate?: (raw: string) => boolean; /** Fires when validity changes (not on mount): true, false, or null when empty/incomplete. */ onValidate?: (valid: boolean | null) => void; onInput?: (value: string | null, formatted: string | null) => void; onChange?: (value: string | null, formatted: string | null) => void; onValueChange?: OnValueChange; [key: string]: unknown; } declare const PatternFormat: import("svelte").Component; type PatternFormat = ReturnType; export default PatternFormat;