import { Observable } from 'rxjs';
import { PreviewFile } from "../types";
import * as i0 from "@angular/core";
export interface FileReaderResponse {
    type: 'success' | 'error';
    data?: ArrayBuffer;
    text?: string;
    json?: any;
    error?: string;
}
export declare class FileReaderService {
    private responseSubject;
    private readFileData;
    readFile(file: PreviewFile, fileType?: 'arraybuffer' | 'text' | 'json'): Observable<FileReaderResponse>;
    ngOnDestroy(): void;
    static ɵfac: i0.ɵɵFactoryDeclaration<FileReaderService, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<FileReaderService>;
}
