import { ConfigService } from '@nestjs/config';
import type { ReadStream } from 'node:fs';
import { DataSource } from 'typeorm';
import type { UploadedAttachment } from '../abstracts/abstract-submissions.service.js';
import { AttachmentStorageService } from '../abstracts/attachment-storage.service.js';
import { MailService } from '../mail/mail.service.js';
import { FormCopyService } from '../notifications/form-copy.service.js';
import type { EditLinkResultDto, SelfUpdateResultDto } from '../registrations/dto/registration-edit.dto.js';
import { UpdateIndustryRegistrationDto, type EditableIndustryRegistrationDto, type SelfUpdateIndustryRegistrationDto } from './dto/industry-registration-edit.dto.js';
export declare const COMPANY_ACTOR_NAME = "Empresa (link de edi\u00E7\u00E3o)";
export declare class IndustryRegistrationEditsService {
    private readonly dataSource;
    private readonly storage;
    private readonly mail;
    private readonly formCopies;
    private readonly config;
    private readonly logger;
    constructor(dataSource: DataSource, storage: AttachmentStorageService, mail: MailService, formCopies: FormCopyService, config: ConfigService);
    updateByAdmin(id: number, dto: UpdateIndustryRegistrationDto, userId: number, proof?: UploadedAttachment): Promise<void>;
    sendEditLink(id: number): Promise<EditLinkResultDto>;
    findByToken(token: string): Promise<EditableIndustryRegistrationDto>;
    openOwnProof(token: string): Promise<{
        stream: ReadStream;
        mimeType: string;
        fileName: string;
    }>;
    updateByToken(token: string, dto: SelfUpdateIndustryRegistrationDto, proof?: UploadedAttachment): Promise<SelfUpdateResultDto>;
    private applyChanges;
    private persist;
    private lockForEdit;
    private notifyUnpaidChange;
    private findValid;
    private findForEdit;
}
