interface BorderAttribute { width: number; style: string; color: ColorRGB; } interface FontAttribute { fontFamily: string; fontStyle: string; fontSize: number; fontWeight: string; color: ColorRGB | null; backgroundColor?: ColorRGB | null; } interface SelectionAttribute { color: ColorRGB | null; backgroundColor: ColorRGB | null; } interface BoxBorder { borderTop: BorderAttribute; borderRight: BorderAttribute; borderBottom: BorderAttribute; borderLeft: BorderAttribute; } interface BoxStyle extends Partial { backgroundSize: string; backgroundRepeat: string; backgroundPositionX: string; backgroundPositionY: string; backgroundColor?: ColorRGB; backgroundClip?: BoxRect; backgroundOrigin?: BoxRect; borderRadius?: string[]; outline?: BorderAttribute; backgroundImage?: ResourceBackgroundImage[]; } interface Gradient { type: "conic" | "radial" | "linear"; colorStops: ColorStop[]; dimension: Dimension | null; colorInterpolation?: string; } interface ImageSet { value: string | Gradient; resolution: string; type?: string; } interface FragmentTargetText { textStart: string; textEnd?: string; prefix?: string; suffix?: string; } interface RepeatingGradient extends Gradient { repeating: boolean; } interface LinearGradient extends RepeatingGradient { angle: number; angleExtent: Point; } interface RadialGradient extends RepeatingGradient { shape: string; center: BoxRectPosition; radius: number; radiusExtent: number; closestSide: number; farthestSide: number; closestCorner: number; farthestCorner: number; } interface ConicGradient extends Gradient { angle: number; center: BoxRectPosition; } interface ColorStop { color: ColorRGB; offset: number; } interface ResourceMap extends ObjectMap | unknown[] | number> { resourceId: number; } interface ResourceAssetsMap extends ResourceMap { fonts: AssetsFonts; image: AssetsImage; metadata: AssetsMetadata; video?: AssetsVideo; audio?: AssetsAudio; rawData?: AssetsRawData; other?: AssetsOther; keyframes?: AssetsKeyframes; fontFeatureValues?: AssetsFontFeatureValues; } interface ResourceStoredMap extends ResourceMap { ids: StoredIds; strings: StoredStrings; arrays: StoredArrays; fonts: StoredFonts; colors: StoredColors; images: StoredImages; } /** @deprecated Intl.LocalesArgument */ type ResourceIntlLocales = string[] | null; type ResourceSessionAsset = Optional[]; type ResourceSessionStored = Optional[]; type ResourceBackgroundImage = string | ImageSet[] | Gradient; type KeyframesMap = Map; type FontFeatureValuesMap = Map; type AssetsFonts = Map; type AssetsImage = Map; type AssetsVideo = Map; type AssetsAudio = Map; type AssetsRawData = Map; type AssetsMetadata = Map; type AssetsOther = RawAsset[]; type AssetsKeyframes = Map; type AssetsFontFeatureValues = Map; type StoredIds = Map; type StoredStrings = Map; type StoredArrays = Map; type StoredFonts = Map; type StoredColors = Map; type StoredImages = Map;