UNPKG

329 BTypeScriptView Raw
1import { FunctionComponent } from "preact";
2export declare const HydrateContext: import("preact").Context<string | false>;
3export interface HydrationProps {
4 method?: "idle" | "visible" | "interaction";
5}
6export declare function withHydrate<T extends FunctionComponent<any>>(Component: T, hydrationProps?: HydrationProps): T;