UNPKG

persist-ui

Version:

Universal input persistence for Vanilla, React, Vue, Astro, Next.js etc. with secure AES encryption.

11 lines (10 loc) 358 B
export declare function usePersistUI(key: string, opts?: Partial<{ debounce: number; encrypt: boolean; encryptionSecret: string; ignoreTypes: string[]; onRestore: (data: Record<string, any>) => void; clearOnSubmit: boolean; submitSelector: string; resetOnUnmount?: boolean; }>): import("react").RefObject<HTMLElement | null>;