import { AnyData } from '../types'; import { ComputedRef, Ref } from 'vue'; type AnyRef = Ref | ComputedRef; interface UseBackupOptions { onlyProps?: keyof D; idField?: keyof D; } /** * Provides a backup of the current instance, and methods to save and restore it. * The `save` method will diff the current instance with the backup. Any values in the new * instance that are different in the old instance will be passed to the save method as data. */ export declare function useBackup(data: AnyRef, options?: UseBackupOptions): { data: AnyRef; backup: Ref; save: () => Promise; restore: (currentInstance: any) => any; }; export {};