import type { UploadResponse } from '../../services/Storage/types';
import { BaseAPI } from '../generated/default';
import type { PlaylistTrackMetadata } from '../playlists/types';
export declare class TrackUploadHelper extends BaseAPI {
    generateId(type: 'track' | 'playlist'): Promise<number>;
    transformTrackUploadMetadata<TrackMetadata extends Pick<PlaylistTrackMetadata, 'isStreamGated' | 'streamConditions' | 'isUnlisted' | 'fieldVisibility'>>(inputMetadata: TrackMetadata, userId: number): TrackMetadata & {
        ownerId: number;
    };
    populateTrackMetadataWithUploadResponse(trackMetadata: PlaylistTrackMetadata, audioResponse: UploadResponse, coverArtResponse: UploadResponse): {
        trackSegments: never[];
        trackCid: string | undefined;
        previewCid: string | undefined;
        origFileCid: string | undefined;
        origFilename: string | undefined;
        audioUploadId: string;
        coverArtSizes: string;
        duration: number;
        title: string;
        isrc?: string | null | undefined;
        iswc?: string | null | undefined;
        description?: string | undefined;
        genre?: import("../..").Genre | null | undefined;
        license?: string | null | undefined;
        mood?: import("../..").Mood | null | undefined;
        tags?: string | undefined;
        artists?: {
            name: string;
            roles: string[];
            sequence_number: number;
        }[] | null | undefined;
        aiAttributionUserId?: number | undefined;
        fieldVisibility?: {
            mood?: boolean | undefined;
            tags?: boolean | undefined;
            genre?: boolean | undefined;
            share?: boolean | undefined;
            playCount?: boolean | undefined;
            remixes?: boolean | undefined;
        } | undefined;
        isUnlisted?: boolean | undefined;
        isStreamGated?: boolean | undefined;
        streamConditions?: {
            nftCollection?: {
                address: string;
                name: string;
                chain: "eth";
                standard: "ERC721" | "ERC1155";
                slug: string;
                imageUrl?: string | undefined;
                externalLink?: string | null | undefined;
            } | {
                address: string;
                name: string;
                chain: "sol";
                imageUrl?: string | undefined;
                externalLink?: string | null | undefined;
            } | undefined;
        } | {
            followUserId: number;
        } | {
            tipUserId: number;
        } | {
            usdcPurchase: {
                price: number;
                splits?: any;
            };
        } | null | undefined;
        isDownloadGated?: boolean | undefined;
        downloadConditions?: {
            nftCollection?: {
                address: string;
                name: string;
                chain: "eth";
                standard: "ERC721" | "ERC1155";
                slug: string;
                imageUrl?: string | undefined;
                externalLink?: string | null | undefined;
            } | {
                address: string;
                name: string;
                chain: "sol";
                imageUrl?: string | undefined;
                externalLink?: string | null | undefined;
            } | undefined;
        } | {
            followUserId: number;
        } | {
            tipUserId: number;
        } | {
            usdcPurchase: {
                price: number;
                splits?: any;
            };
        } | null | undefined;
        releaseDate?: Date | undefined;
        remixOf?: {
            tracks: {
                parentTrackId: number;
            }[];
        } | undefined;
        previewStartSeconds?: number | undefined;
        isDownloadable?: string | undefined;
        isOriginalAvailable?: string | undefined;
        ddexReleaseIds?: Record<string, string> | null | undefined;
        resourceContributors?: {
            name: string;
            roles: string[];
            sequence_number: number;
        }[] | null | undefined;
        indirectResourceContributors?: {
            name: string;
            roles: string[];
            sequence_number: number;
        }[] | null | undefined;
        rightsController?: {
            name: string;
            roles: string[];
            rights_share_unknown?: string | undefined;
        } | null | undefined;
        copyrightLine?: {
            year: string;
            text: string;
        } | null | undefined;
        producerCopyrightLine?: {
            year: string;
            text: string;
        } | null | undefined;
        parentalWarningType?: string | null | undefined;
    };
}
