import { ConfigService } from '@nestjs/config';
import type { ReadStream } from 'node:fs';
import { DataSource } from 'typeorm';
import { EditionsService } from '../../editions/editions.service.js';
import { AbstractEditsService } from '../abstract-edits.service.js';
import { AdminAbstractsService } from '../admin-abstracts.service.js';
import type { UploadedAttachment } from '../abstract-submissions.service.js';
import type { UpdateAbstractDto } from '../dto/update-abstract.dto.js';
import type { CorrectionDto } from './dto/correction.dto.js';
export declare class AbstractCorrectionsService {
    private readonly dataSource;
    private readonly edits;
    private readonly abstracts;
    private readonly editions;
    private readonly config;
    private readonly logger;
    constructor(dataSource: DataSource, edits: AbstractEditsService, abstracts: AdminAbstractsService, editions: EditionsService, config: ConfigService);
    findByToken(token: string): Promise<CorrectionDto>;
    submit(token: string, dto: UpdateAbstractDto, attachment?: UploadedAttachment): Promise<void>;
    openOwnAttachment(token: string): Promise<{
        stream: ReadStream;
        mimeType: string;
        fileName: string;
    }>;
    private findValid;
}
