import { type CardImageFit } from './settings.js'; export declare const CARD_IMAGE_BACKGROUND = "#253235"; /** Keep aspect ratio in both modes; only cover may extend beyond the face. */ export declare function cardImageRect(width: number, height: number, targetWidth: number, targetHeight: number, fit: CardImageFit): { x: number; y: number; width: number; height: number; }; export declare function drawCardImage(canvas: HTMLCanvasElement, image: HTMLImageElement, fit: CardImageFit): void; export declare function loadCardImage(source: string): Promise; /** Persist a bounded source with its aspect ratio intact, so fitting remains * reversible. No remote URLs, SVG execution, server upload or full-size GPU textures. */ export declare function prepareCardImage(file: File, maxDimension?: number): Promise; //# sourceMappingURL=card-image.d.ts.map