/** * Formats and escapes a string safely for use in Rust string literals. * The returned value is the escaped string, surrounded by double quotes, * making it ready for direct insertion into Rust source code. */ export declare function wrapInDoubleQuotes(str: string): string; /** * Produces an indented string using 4 spaces per indent level, * in accordance with rustfmt style guidelines. * Useful for code generation scenarios requiring precise formatting. */ export declare function indent(level: number, text: string): string; /** * Formats a Rust chained method call with standard 4-space indentation. * Useful for fluent API or builder patterns in generated Rust code. */ export declare function createChain(method: string, ...args: string[]): string; /** * Properly formats a JSON snippet for Rust's `serde_json::json!` macro, * applying idiomatic 4-space indentation to each line for improved readability. */ export declare function formatJson(jsonText: string): string; //# sourceMappingURL=rust.d.ts.map