import { Feature } from 'oak-frontend-base/es/types/Feature'; import { Cache } from 'oak-frontend-base/es/features/cache'; import { EntityDict } from '../oak-app-domain'; import { Application } from './application'; import { Cos } from '../types/Cos'; export type FileState = 'local' | 'uploading' | 'uploaded' | 'failed'; export declare class ExtraFile extends Feature { private cache; private application; private files; constructor(cache: Cache, application: Application); registerCos(clazzes: Array Cos>): void; addLocalFile(id: string, file: File | string): void; removeLocalFiles(ids: string[]): void; upload(id: string): Promise; getUrl(extraFile?: Partial, style?: string): string; getFileState(id: string): { state: FileState; percentage?: number; } | undefined; getFileName(extraFile: ED['extraFile']['OpSchema']): string; formatBytes(size: number): string; autoUpload(extraFile: ED['extraFile']['OpSchema'], file: File | string, style?: string, getPercent?: Function): Promise; private uploadToAspect; }