import { Model } from 'sequelize-typescript';
import { MVideoImportDefault, MVideoImportFormattable } from '../../types/models/video/video-import';
import { VideoImport, VideoImportState } from '../../../shared/models';
import { AttributesOnly } from '../../../shared/typescript-utils';
import { UserModel } from '../user/user';
import { VideoModel } from './video';
export declare class VideoImportModel extends Model<Partial<AttributesOnly<VideoImportModel>>> {
    createdAt: Date;
    updatedAt: Date;
    targetUrl: string;
    magnetUri: string;
    torrentName: string;
    state: VideoImportState;
    error: string;
    userId: number;
    User: UserModel;
    videoId: number;
    Video: VideoModel;
    static deleteVideoIfFailed(instance: VideoImportModel, options: any): any;
    static loadAndPopulateVideo(id: number): Promise<MVideoImportDefault>;
    static listUserVideoImportsForApi(options: {
        userId: number;
        start: number;
        count: number;
        sort: string;
        targetUrl?: string;
    }): Promise<{
        data: MVideoImportDefault[];
        total: number;
    }>;
    getTargetIdentifier(): string;
    toFormattedJSON(this: MVideoImportFormattable): VideoImport;
    private static getStateLabel;
}
//# sourceMappingURL=video-import.d.ts.map