/** * Aspect ratio detection from Sanity field names. * * Maps common field naming conventions (e.g. heroImage, ogImage) to the * closest valid Lamina API aspect ratio value so generated assets match * the intended placement without manual editor intervention. */ /** Valid aspect ratio values accepted by the Lamina content.create() API. */ export type LaminaAspectRatio = '1:1' | '16:9' | '9:16' | '4:3' | '4:5' | 'auto'; export declare const ASPECT_RATIO_OPTIONS: readonly { value: LaminaAspectRatio | ''; label: string; }[]; export interface DetectedAspectRatio { ratio: LaminaAspectRatio; /** Human-readable explanation, e.g. "16:9 (hero image)" */ label: string; } /** * Detect the best aspect ratio for a given field name. * * @returns The detected ratio and a human-readable label, or `null` when * the field name is unknown or not provided. */ export declare function detectAspectRatio(fieldName?: string): DetectedAspectRatio | null;