export declare const PLATFORM_IMAGE_BLOCK_DIMENSION_SYNC_META = "platformImageBlockDimensionSync"; export declare function computePixelDimensions(naturalWidth: number, naturalHeight: number, ratio: number): { width: number; height: number; } | null; export declare function dimensionsMatchAttrs(attrs: { width?: number | null; height?: number | null; }, computed: { width: number; height: number; }): boolean; /** * Milkdown ImageViewer sizes via `transformedHeight * ratio`, but Platform markdown stores * pixel `width`/`height` (`=WxH`) with ratio defaulting to 1. Derive an effective ratio from * stored pixels and apply the same display formula so readonly / markdown-loaded docs match. */ export declare function applyStoredDimensionsToImage(img: HTMLImageElement, attrs: { width?: number | null; height?: number | null; }, hostMaxWidth?: number): boolean; /** * Keeps image-block width/height attrs in sync with ratio changes and image load, * bridging stock Milkdown Vue view (ratio-only) to Platform pixel dimensions. */ export declare const platformImageBlockDimensionSync: import('@milkdown/utils').$Prose;