/** * The purpose of this type is to simplify the logic * around data that needs to come from the server initially, * but from the internal state after hydration. */ export type Hydratable = { hydrateTo: (data: T) => T; map: (fn: (data: T) => U) => Hydratable; }; export declare const hydratable: { serverData: (data: T) => Hydratable; hydratedData: () => Hydratable; from: (data: T_2, hydrated: boolean) => Hydratable; };