import { Action } from 'svelte/action'; import { Writable } from 'svelte/store'; type Falsy = false | 0 | '' | null | undefined; type Validator = Action & Writable & { validate: (display?: boolean) => boolean }; export function validator(chill?: boolean): Validator; export function validate(...validators: (Validator | Falsy)[]): boolean; export function reset(...validators: (Validator | Falsy)[]): boolean;