import type { CommitHook, EasyScoreCompositionSpec } from './easyscore'; import { HeadOccurrenceIndex } from './headoccurrences'; import { PublicationView } from './publicationview'; import type { SVGFont } from './svgexport'; export type { PublicationCondense } from './publicationcondense'; export type { CueTransposition } from './publicationcue'; export type { PublicationRegion, PublicationView } from './publicationview'; /** Paper, staff height (four spaces), margins, and inter-system gaps are measured in millimeters. */ export interface PublicationOptions extends PublicationView { /** Apply the source's EasyScore note decorations to every independently built part and cue. */ noteHooks?: readonly CommitHook[]; paper?: 'A4' | 'Letter' | { width: number; height: number; }; staffSize?: number; margins?: Partial>; title?: string; subtitle?: string; header?: string; footer?: string; pageNumbers?: boolean; systemGap?: number; maxExtraGap?: number; justifyLast?: boolean; } export interface PublicationDiagnostic { code: 'PageOverflow' | 'SystemOverflow' | 'TextOverflow' | 'ForbiddenTurn' | 'ExcludedAnchor' | 'Engraving'; measures: number[]; detail: string; page?: number; } export interface PublicationPage { svg: SVGSVGElement; number: number; /** Ink on this page, in physical millimeters from the top-left corner of its viewBox. */ heads: HeadOccurrenceIndex; systems: { measures: number[]; x: number; y: number; width: number; height: number; }[]; } /** Public result uses the same SVGs for display, serialization and browser print/PDF. */ export declare class PublicationResult { readonly pages: PublicationPage[]; readonly diagnostics: PublicationDiagnostic[]; readonly paper: { width: number; height: number; }; constructor(pages: PublicationPage[], diagnostics: PublicationDiagnostic[], paper: { width: number; height: number; }); /** Supply outline fonts for a portable standalone SVG, with per-page semantic metadata retained. */ toSVG(pageNumber: number, fonts?: SVGFont[]): string; /** A separate print document avoids inheriting the application's styles and external font dependencies. */ toPrintHTML(fonts: SVGFont[]): string; } /** Attach one physical SVG per page. Render again with different options to build an independent part. */ export declare class Publication { private readonly source; constructor(source: EasyScoreCompositionSpec); render(target: HTMLElement, options?: PublicationOptions): PublicationResult; }