import { URL, UUID, UnitInterval } from "../common"; export type Ratio = string; export type Crop = { ratio: Ratio | null; url: URL | null; relativeHorizontalOffset: UnitInterval | null; relativeVerticalOffset: UnitInterval | null; relativeWidth: UnitInterval | null; relativeHeight: UnitInterval | null; chpId: string | null; }; export type Image = { id: UUID; title: string | null; caption: string | null; credits: string | null; crop: Crop | null; crops: Crop[]; videoCrops: Crop[] | null; }; export type ImagesPaged = { list: [Image]; }; export type Video = { id: UUID; caption: string | null; duration?: number | null; brightcoveAccountId: string | null; brightcovePlayerId: string | null; brightcovePolicyKey: string | null; brightcoveVideoId: string | null; paidOnly: boolean | null; skySports: boolean | null; posterImage: Image | null; title: string | null; is360: boolean | null; }; export type Media = Image | Video; export type ImageArgs = { ratio: string; };