import type { ASTNode } from 'magicast';
import type { ArrayNode, JsonValue, ObjectNode, ParsedConfig, PropertyNode, SourceEdit } from './types.js';
/** Gets local indentation without changing any existing source line. */
export declare function sourceIndent(code: string, offset: number): string;
/** Prints new JSON expressions with recast literals and the project's quotes. */
export declare function printValue(code: string, value: JsonValue, literalQuote?: 'single' | 'double'): string;
/** Replaces only the selected expression, leaving comments and siblings intact. */
export declare function replaceNode(node: ASTNode, code: string): SourceEdit;
/** Appends one property/element with the container's indentation and commas. */
export declare function appendEntry(parsed: ParsedConfig, container: ObjectNode | ArrayNode, entry: string): SourceEdit[];
/** Deletes a property and its own comma, retaining unrelated comments. */
export declare function removeProperty(parsed: ParsedConfig, property: PropertyNode): SourceEdit;
/** Applies disjoint edits in reverse offset order so original ranges stay valid. */
export declare function applySourceEdits(code: string, edits: SourceEdit[]): string;
//# sourceMappingURL=source-edit.d.ts.map