UNPKG

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