import { type PropsWithChildren } from "react"; import type { AlchemyAccountsConfig } from "../config"; import type { StoredState } from "../config/store/types"; export type HydrateProps = { config: AlchemyAccountsConfig; initialState?: StoredState; }; /** * A react component that can be used to hydrate the client store with the provided initial state. * This method will use {@link hydrate} to hydrate the client store with the provided initial state if one is provided. * If ssr is set on the account config, then it will run the onMount function within a useEffect hook. Otherwise, * It will run onMount as soon as the compoonent is rendered. * * based on https://github.com/wevm/wagmi/blob/main/packages/react/src/hydrate.ts * * @param props component props containing the config and initial state as well as children to render * @param props.config the account config containing the client store * @param props.initialState optional param detailing the initial ClientState * @param props.children the children to render * @returns the children to render */ export declare function Hydrate(props: PropsWithChildren): import("react").ReactNode; //# sourceMappingURL=hydrate.d.ts.map