kjelsrud.dev/node_modules/astro/dist/runtime/server/render/common.d.ts
2023-07-19 21:31:30 +02:00

17 lines
822 B
TypeScript

import type { SSRResult } from '../../../@types/astro';
import type { RenderInstruction } from './types.js';
import { HTMLBytes } from '../escape.js';
import { type SlotString } from './slot.js';
export declare const Fragment: unique symbol;
export declare const Renderer: unique symbol;
export declare const encoder: TextEncoder;
export declare const decoder: TextDecoder;
export declare function stringifyChunk(result: SSRResult, chunk: string | SlotString | RenderInstruction): string;
export declare class HTMLParts {
parts: string;
constructor();
append(part: string | HTMLBytes | RenderInstruction, result: SSRResult): void;
toString(): string;
toArrayBuffer(): Uint8Array;
}
export declare function chunkToByteArray(result: SSRResult, chunk: string | HTMLBytes | RenderInstruction): Uint8Array;