/*! * @license * Copyright Squiz Australia Pty Ltd. All Rights Reserved. */ import type { SquizImageType } from './SquizImage'; import type { SquizLinkType } from './SquizLink'; import type { MatrixAssetLinkType } from '../resolvableTypes/MatrixAsset'; /** * Minimal Matrix asset shape used for mapping to Squiz primitives. * Compatible with MANIFEST_MODELS.v1.MatrixAssetSchema and API response shapes. */ export interface MatrixAssetLike { url: string; type: string; attributes: Record; /** Optional; when present, varieties (for image types) may be read from it */ additional?: unknown; } /** * Maps a Matrix asset and link reference to a SquizLink shape. * Mirrors the logic in content-api MatrixResolutionService.mapMatrixAssetToSquizLink. */ export declare function mapMatrixAssetToSquizLink(asset: MatrixAssetLike, matrixLinkAsset: MatrixAssetLinkType['__shape__']): SquizLinkType['__shape__']; /** * Maps a Matrix image asset to a SquizImage shape. * Mirrors the logic in content-api MatrixResolutionService.mapMatrixAssetToSquizImage. */ export declare function mapMatrixAssetToSquizImage(asset: MatrixAssetLike): SquizImageType['__shape__'];