import type { BitmapResolution, Dimension, FloatShrinkConfig, FloatShrinkMode, LayoutConfig, LayoutType, ResolvedLayoutConfig, ResolvedTextWrapConfig, TextWrapConfig } from '../types.js'; export declare const DEFAULT_COLUMN_RULE: { enabled: boolean; color: { readonly hex: "#cccccc"; readonly model: "hex"; }; lineWidth: { readonly value: 0.5; readonly unit: "pt"; }; }; /** The smallest scale `placement.shrink` sets a picture at, when nothing * says otherwise (#626). */ export declare const DEFAULT_FLOAT_MIN_SCALE = 0.7; /** A `floatShrink.mode` / `placement.shrink` as written: one of the three * words, else `undefined`. */ export declare function floatShrinkModeOf(value: unknown): FloatShrinkMode | undefined; /** A `minScale` as written: a number in (0, 1], else `undefined`. */ export declare function floatMinScaleOf(value: unknown): number | undefined; /** `layout.floatShrink` resolved: a mode and a smallest scale. */ export declare function resolveFloatShrink(partial?: FloatShrinkConfig): { mode: FloatShrinkMode; minScale: number; }; /** `layout.wrap` defaults (#627): no gap of its own (one body line), text * no narrower than 12 em, two lines beside, 45 % of the column. */ export declare const DEFAULT_TEXT_WRAP: ResolvedTextWrapConfig; /** A `minTextWidth` as written: a length, or a share of the column in * (0, 1]; else `undefined`. */ export declare function wrapMinTextWidthOf(value: unknown): Dimension | number | undefined; /** A `minLinesBeside` as written: a whole number, at least 1. */ export declare function wrapMinLinesOf(value: unknown): number | undefined; /** A `defaultWidth` (or `placement.width`) as a wrap reads it: a share in * (0, 1). */ export declare function wrapWidthOf(value: unknown): number | undefined; /** `layout.wrap` resolved; misspelt values fall back to the defaults. */ export declare function resolveTextWrap(partial?: TextWrapConfig): ResolvedTextWrapConfig; /** A `bitmapResolution` as written (#631): `'document'`, `'file'` or a * positive ppi; else `undefined`. */ export declare function bitmapResolutionOf(value: unknown): BitmapResolution | undefined; /** The share of a column a float heading the page that cites it may take * (`layout.maxTopFraction`, #633). */ export declare const DEFAULT_MAX_TOP_FRACTION = 0.7; /** A `maxTopFraction` as written: a number in (0, 1], else `undefined`. */ export declare function maxTopFractionOf(value: unknown): number | undefined; export declare const DEFAULT_LAYOUT_CONFIG: ResolvedLayoutConfig; export declare function resolveLayoutConfig(partial?: LayoutConfig): ResolvedLayoutConfig; export declare function stripLayoutDefaults(layout?: LayoutConfig): LayoutConfig | undefined; /** The fewest and most columns of a `multiple` layout. */ export declare const MULTIPLE_COLUMNS_MIN = 3; export declare const MULTIPLE_COLUMNS_MAX = 8; /** The column count a `multiple` layout cuts its columns with: `value` * rounded to a whole number and clamped to 3 … 8; a value that is not a * number takes the default (3). `collectConfigWarnings` reports each value * this changes. */ export declare function columnCountUsed(value: number): number; /** How many body columns a layout cuts a page into (the side column of a * `oneAndHalf` layout counts). */ export declare function layoutColumnCount(layout: { layoutType: LayoutType; columnCount: number; }): number; //# sourceMappingURL=layout.d.ts.map