1 | import { AbstractScriptedFlushable } from "../../internal/common/AbstractScriptedFlushable";
|
2 | import { File } from "../File";
|
3 |
|
4 |
|
5 |
|
6 | export declare abstract class AbstractFile extends AbstractScriptedFlushable<File> implements File {
|
7 | abstract path: string;
|
8 | readonly name: string;
|
9 | readonly extension: string;
|
10 | abstract getContentSync(): string;
|
11 | abstract setContentSync(content: string): this;
|
12 | abstract getContent(): Promise<string>;
|
13 | abstract setContent(content: string): Promise<this>;
|
14 | rename(name: string): Promise<this>;
|
15 | abstract setPath(path: string): Promise<this>;
|
16 | replace(re: RegExp, replacement: string): Promise<this>;
|
17 | replaceAll(oldLiteral: string, newLiteral: string): Promise<this>;
|
18 | abstract isExecutable(): Promise<boolean>;
|
19 | abstract isReadable(): Promise<boolean>;
|
20 | abstract isBinary(): Promise<boolean>;
|
21 | }
|