/** * `FileBadge` geometry — its own module, so the arithmetic is unit-testable * without rendering the badge. * * A `FileBadge`'s `size` is its WIDTH; every other dimension scales off it, so the badge * has a FIXED aspect (26 × 32 at the default) and is TALLER than it is wide. A caller that * owns a SQUARE slot — the thumbnail family, whose `size` is the tile side — therefore * cannot pass its tile side through as a width: the badge would overflow the tile's * bottom. `fileBadgeWidthForBox` converts a square slot to the width that fits it. */ /** The default badge width. A default badge is exactly `FILE_BADGE_BOX` tall. */ export declare const FILE_BADGE_DEFAULT_WIDTH = 26; /** The height of a default-width badge — and the square slot it exactly fills. */ export declare const FILE_BADGE_BOX = 32; /** The badge's height at a given width. The aspect is fixed. */ export declare function fileBadgeHeight(width: number): number; /** * The widest badge that fits inside a `box`×`box` square slot — height is the binding * dimension, since the badge is taller than it is wide. `fileBadgeWidthForBox(32)` is * `FILE_BADGE_DEFAULT_WIDTH`: the default badge fills the compact thumbnail slot exactly. */ export declare function fileBadgeWidthForBox(box: number): number;