1 | import { json } from 'mrm-core';
|
2 | import { KeyValuePair } from '../Base/KeyValuePair';
|
3 | /**
|
4 | * Exposes the API to work with JSON files.
|
5 | *
|
6 | * ```ts
|
7 | * const json = new JsonFile(__dirname, 'tsconfig.json')
|
8 | * json.set('compilerOptions.lib', ['es2017'])
|
9 | *
|
10 | * json.commit()
|
11 | * ```
|
12 | */
|
13 | export declare class JsonFile extends KeyValuePair {
|
14 | filePointer: ReturnType<typeof json>;
|
15 | constructor(basePath: string, filename: string);
|
16 | }
|