import type { RectSize } from './types.ts'; /** * Returns a rectangle that has same ratio as `target` but fits `area` by size. * Works like CSS-rule `object-fit`, by default as `contain`. * @param target Target box. * @param area Area box. * @param strategy Strategy, `contain` or `cover`. * @returns New box that fits into area. */ export declare function scaleRectToFit(target: RectSize, area: RectSize, strategy?: 'contain' | 'cover'): RectSize;