import type { Identifier } from './identifiers';

export interface AssetObject {
    ordinal?: number;
    url?: string | null;
    metadata?: Record<string, unknown> | null;
    expires_at?: number;
    [key: string]: unknown;
}

export interface AssetLike {
    id?: Identifier;
    asset_type?: string;
    cardinality?: number | null;
    download?: { url: string; expires_at: number } | null;
    metadata?: Record<string, unknown> | null;
    assets?: Record<string, AssetLike> | AssetLike[] | null;
    objects?: AssetObject[] | null;
    [key: string]: unknown;
}
