import { Resource } from 'wirejs-resources'; export declare class FileService extends Resource { constructor(scope: Resource | string, id: string); read(filename: string, encoding?: BufferEncoding): Promise; write(filename: string, data: string, { onlyIfNotExists }?: { onlyIfNotExists?: boolean | undefined; }): Promise; delete(filename: string): Promise; list({ prefix }?: { prefix?: string | undefined; }): AsyncGenerator; isAlreadyExistsError(error: any): boolean; }