UNPKG

@buurman/sdk

Version:

The buurman SDK

19 lines 681 B
import { Transformer } from "@buurman/commons"; export interface FileApi { exists(): Promise<boolean>; get(): Promise<string>; getLines(): Promise<string[]>; set(content: string): this; append(content: string): this; prepend(content: string): this; setLines(lines: string[]): this; appendLines(lines: string[]): this; prependLines(lines: string[]): this; transform(transformer: Transformer<string>): this; mapLines(transformer: Transformer<string>): this; delete(): Promise<void>; save(): Promise<void>; } declare const file: (path: string) => FileApi; export default file; //# sourceMappingURL=FileApi.d.ts.map