declare type UpdateFn = (current: T) => T | Promise; export declare function updateFile(path: string, update: UpdateFn, encoding?: string): Promise; export declare function updateJson(path: string, update: UpdateFn): Promise; export {};