import { IconVolumeUp } from '@bynder/icons'; import { File, VideoPreset } from '../../select/file.type'; export type AssetType = 'AUDIO' | 'DOCUMENT' | 'IMAGE' | 'VIDEO' | 'ARCHIVE'; export type AssetData = { tag: 'Loading'; value: undefined | Asset[]; } | { tag: 'Loaded'; value: Asset[]; }; export declare function assetTypeToString(type: AssetType): string; export declare function getAssetTypeIcon(type: AssetType): typeof IconVolumeUp; interface Derivatives { thumbnail?: string; } export interface TextMetapropertiesType { name: string; value: string; label: string; type: string; zIndex: number; showInGridView: boolean; showInListView: boolean; } export interface MetapropertyType { __typename: 'Metaproperty'; id: string; label: string; zIndex: number; options: MetapropertyOptionType[]; showInGridView: boolean; showInListView: boolean; } export interface MetapropertyOptionType { id: string; label: string; assetCount: number; } export interface PresetGroupPreset { name: string; } export interface PresetGroup { name: string; presets: PresetGroupPreset[]; } export interface Tag { id: string; name: string; assetCount: number; } export interface Asset { __typename: string; id: string; databaseId: string; derivatives: Derivatives; extensions: string[]; name: string; url: string; updatedAt?: string; isArchived: boolean; isWatermarked: boolean; isLimitedUse: boolean; similarityScore?: number; metaproperties?: { nodes: MetapropertyType[]; }; textMetaproperties?: TextMetapropertiesType[]; files: Record; streamingLinks?: { hls: string; dash: string; }; videoPresets?: VideoPreset[]; presetGroups?: PresetGroup[]; } export {};