histoire
Version:
A fast story book powered by Vite
10 lines • 535 B
TypeScript
import type { ConfigAccessOptions, ConfigPatch } from './types.js';
/** Produces minimal source edits; disk writes require an explicit writeConfig call. */
export declare function editConfig(file: string, patches: ConfigPatch[], options?: ConfigAccessOptions): Promise<{
code: string;
changed: string[];
hash: string;
}>;
/** Applies one validated patch, reparsing between patches to keep offsets exact. */
export declare function editConfigCode(code: string, patch: ConfigPatch): string;
//# sourceMappingURL=edit.d.ts.map