export function renderToString( fn: () => T, options?: { nonce?: string; renderId?: string; } ): string; export function renderToStringAsync( fn: () => T, options?: { timeoutMs?: number; nonce?: string; renderId?: string; } ): Promise; export function renderToStream( fn: () => T, options?: { nonce?: string; renderId?: string; onCompleteShell?: (info: { write: (v: string) => void }) => void; onCompleteAll?: (info: { write: (v: string) => void }) => void; } ): { pipe: (writable: { write: (v: string) => void }) => void; pipeTo: (writable: WritableStream) => void; }; export function HydrationScript(props: { nonce?: string; eventNames?: string[] }): JSX.Element; export function ssr(template: string[] | string, ...nodes: any[]): { t: string }; export function ssrElement( name: string, props: any, children: any, needsId: boolean ): { t: string }; export function ssrClassList(value: { [k: string]: boolean }): string; export function ssrStyle(value: { [k: string]: string }): string; export function ssrAttribute(key: string, value: any, isBoolean: boolean): string; export function ssrHydrationKey(): string; export function resolveSSRNode(node: any): string; export function escape(html: string): string; export function useAssets(fn: () => JSX.Element): void; export function getAssets(): string; export function getHydrationKey(): string; export function effect(fn: (prev?: T) => T, init?: T): void; export function memo(fn: () => T, equal: boolean): () => T; export function createComponent(Comp: (props: T) => JSX.Element, props: T): JSX.Element; export function mergeProps(...sources: unknown[]): unknown; export function getOwner(): unknown; export function generateHydrationScript(options: { nonce?: string; eventNames?: string[] }): string; export function stringify(root: unknown): string; export function Hydration(props: { children?: JSX.Element }): JSX.Element; export function NoHydration(props: { children?: JSX.Element }): JSX.Element; export function Assets(props: { children?: JSX.Element }): JSX.Element; // deprecated export type LegacyResults = { write: (text: string) => void; startWriting: () => void; }; export function pipeToWritable( fn: () => T, writable: WritableStream, options?: { nonce?: string; onReady?: (res: LegacyResults) => void; onCompleteAll?: () => void; } ): void; export function pipeToNodeWritable( fn: () => T, writable: { write: (v: string) => void }, options?: { nonce?: string; onReady?: (res: LegacyResults) => void; onCompleteAll?: () => void; } ): void;