import { Serial } from './lib/serial'; import { LocalManager } from '@superwallaby/local-storage-manager'; export interface FormSaverConfig { formId: string; defaultKey: Keys; onSave?: () => void; onLoad?: () => void; onCover?: () => boolean; onError?: (e: any) => void; } export declare class FormSaver { form: HTMLElement; saveKey: Keys; localManager: LocalManager; onLoad: () => void; onSave: () => void; onCover: () => boolean; onError: (e: any) => void; constructor(config: FormSaverConfig); save: (data: Serial[], key?: Keys) => void; saveData: (key?: Keys) => Promise; set: (data: Serial) => void; loadData: (key?: Keys) => void; } export default FormSaver;