/** * Telling a server-rendered element apart, from the DOM alone. * * Lit's server renderer marks each template it writes with a * `` comment, and hydration keeps those markers; a * template rendered in the browser marks its parts differently. So a shadow * root that holds one at its top level came from the server, before and * after hydration. Dependency-free: the HMR patch and the inspector both * ask. * * @module */ /** Whether `root` holds HTML Lit rendered on the server. */ export declare const hasServerRender: (root: ParentNode) => boolean; /** * Where a server-rendered element stands: held back by `defer-hydration`, * waiting for its first update, or hydrated. `undefined` for an element the * browser rendered. */ export type HydrationState = 'deferred' | 'pending' | 'hydrated'; export declare const hydrationStateOf: (el: Element & { hasUpdated?: boolean; }) => HydrationState | undefined; //# sourceMappingURL=server-render.d.ts.map