import { Readable, Writable } from "svelte/store"; declare type ValidationError = string | readonly string[] | undefined; declare type Validator = (v: T) => string | readonly string[] | undefined; export declare type TransactionStore = Writable & { readonly commit: () => void; readonly cancel: () => void; readonly hasChanges: Readable; readonly validationError: Readable; }; export declare function transactionStore(store: Writable, validator?: Validator): TransactionStore; export {};