export declare function usePersistFn any>(fn: T): T;