type Draft = Record; export declare const useAutosave: (saved: Saved, onFailed: (what: string) => void) => { draft: Draft; pendingKeys: string[]; hasSaved: boolean; commit: (key: string, next: boolean | string, save: () => Promise, what: string) => void; }; export {};