//@ts-nocheck function throwInBrowser(func: Function) { const err = new Error(`${func.name} is not supported in the browser, returning undefined`); console.error(err); } export function renderToString( fn: () => T, options?: { nonce?: string; renderId?: string; } ): string { throwInBrowser(renderToString); } export function renderToStringAsync( fn: () => T, options?: { timeoutMs?: number; nonce?: string; renderId?: string; } ): Promise { throwInBrowser(renderToStringAsync); } 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; } { throwInBrowser(renderToStream); } 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: boolean): string {} export function ssrHydrationKey(): string {} export function resolveSSRNode(node: any): string {} export function escape(html: string): string {} /** * @deprecated Replaced by ssrElement */ export function ssrSpread(props: any, isSVG: boolean, skipChildren: boolean): void {}; export type LegacyResults = { startWriting: () => void; }; /** * @deprecated Replaced by renderToStream */ export function pipeToWritable( fn: () => T, writable: WritableStream, options?: { nonce?: string; onReady?: (res: LegacyResults) => void; onCompleteAll?: () => void; } ): void; /** * @deprecated Replaced by renderToStream */ export function pipeToNodeWritable( fn: () => T, writable: { write: (v: string) => void }, options?: { nonce?: string; onReady?: (res: LegacyResults) => void; onCompleteAll?: () => void; } ): void;