import { DataSource } from 'typeorm';
import { Readable } from 'stream';
import { AuditTable } from '../shared/audit-query.helper';
type Stage = 1 | 2;
export declare class AuditReportFileService {
    private readonly qrs;
    private readonly tqs;
    private readonly logger;
    private readonly PUBLIC_BASE;
    private readonly DISK_ROOT;
    constructor(qrs: DataSource, tqs: DataSource);
    private lookupPath;
    getPublicUrl(source: 'QRS' | 'TQS', table: AuditTable, recordId: number, stage: Stage): Promise<{
        url: string;
        filename: string;
    }>;
    openFile(source: 'QRS' | 'TQS', table: AuditTable, recordId: number, stage: Stage): Promise<{
        stream: Readable;
        size: number;
        mimeType: string;
        filename: string;
    }>;
    private mimeFor;
}
export {};
