UNPKG

@buurman/sdk

Version:

The buurman SDK

26 lines 1.04 kB
import { Mutation, Transformer } from "@buurman/commons"; import { FileApi } from "./FileApi"; export declare type Value = string; export declare const initialValue: Value; export declare const types: { SET: string; TRANSFORM: string; APPEND: string; PREPEND: string; }; export declare const reducer: (value: string | undefined, { type, payload }: Mutation<any>) => any; declare const FileMutator: (getApi: () => FileApi) => { applyMutations: (initialValue: string | undefined) => string | undefined; mutations: { set: (...args: any[]) => FileApi; transform: (...args: any[]) => FileApi; mapLines: (value: Transformer<string, string>) => FileApi; setLines: (lines: string[]) => FileApi; appendLines: (lines: string[]) => FileApi; prependLines: (lines: string[]) => FileApi; append: (...args: any[]) => FileApi; prepend: (...args: any[]) => FileApi; }; }; export default FileMutator; //# sourceMappingURL=FileMutator.d.ts.map