import { Page } from "../onenote/types"; import { StyleSet } from "./utils"; /** * Resolves the binary data of an image or embedded file into an HTML string. * Used by the importer to attach hashed attachments instead of writing files * to disk. */ export type ResourceResolver = (data: Uint8Array, filename: string, extension?: string, meta?: { width?: number; height?: number; altText?: string; }) => string | Promise; export type RenderOptions = { resolveResource?: ResourceResolver; }; export type RenderResult = { /** Linearized HTML content with data-onenote-* position attributes. */ html: string; /** SVG snapshot preserving the original visual layout (only for pages with ink). */ svgSnapshot?: string; }; type NoteTagStyle = StyleSet; export declare function renderPage(page: Page, options?: RenderOptions): Promise; export type { NoteTagStyle };