/** * Inline `::resource` embeds that span the page (#535): a resource placed * `here` with `span: 'page'` is set across the page where its directive * stands, the way a page-span box is: the text columns above it close level * and the flow goes on in the band below. The build wraps each such * directive in a frameless page-span box (a synthetic `:::callout` with the * {@link SPAN_EMBED_STYLE_ID} style), so the span-block machinery — level * cuts, band caps, moves to the next page — places it. On a one-column * page the box falls back to the flow, at the full measure the embed took * already. A page-wide comic strip set `here` (`:::strip{span=page}`, * #590) is boxed the same way; on a one-column page the build sets it in * the flow as any strip, its box ignored. */ import type { ContentBlock } from '../parse/index.js'; import type { CalloutStyleConfig, Resource, ResourceType } from '../types.js'; /** Style id of the frameless box that carries a page-span embed. Not a * user style: no configuration can name it. */ export declare const SPAN_EMBED_STYLE_ID = "__postext-span-embed"; /** The box: no frame, padding, title or icon, never split or floated; the * gap of an inline resource (`gapPx`, a body line) above it, and below it * unless `layout.inlineResourceGap` is `'above'` (`gapBelow`). */ export declare function spanEmbedStyle(gapPx: number, gapBelow: boolean): CalloutStyleConfig; /** Whether `block` is a comic strip set across the page where it is * written (`:::strip{span=page}`, placed `here`). */ export declare function isPageSpanStrip(block: ContentBlock | undefined): boolean; /** * `blocks` with every page-span inline embed wrapped in a synthetic * page-span box. An embed inside a box keeps to it (the box's own span * decides). `wrapped` tells whether any was: the build then adds the * box's style to the callout styles. The same blocks come back when none * is wrapped. */ export declare function wrapPageSpanEmbeds(blocks: readonly ContentBlock[], resources: readonly Resource[], resourceTypes: readonly ResourceType[]): { blocks: ContentBlock[]; wrapped: boolean; }; //# sourceMappingURL=spanEmbeds.d.ts.map