import type { ElementNode } from '../schema/types.js'; import type { SchemaEnv } from '../schema/env.js'; export type HtmlAttrs = Readonly>; export interface HtmlContext { element(tag: string, inner: string, attrs?: HtmlAttrs): string; wrap(tag: string, inner: string, attrs?: HtmlAttrs): string; escape(text: string): string; url(raw: string | undefined): string | null; src(raw: string | undefined): string | null; filled(inner: string): string; readonly keys: boolean; } export type HtmlBuilder = (node: ElementNode, children: () => string, ctx: HtmlContext) => string; export type HtmlBuilders = Readonly>; export interface HtmlOptions { readonly env: SchemaEnv; readonly builders?: HtmlBuilders; readonly allowLocalUrls?: boolean; } //# sourceMappingURL=contract.d.ts.map