/**
 * Formats generated code with the consumer project's Prettier so style and lockfile
 * hashes stay consistent. Loaded programmatically once per workspace root,
 * cached for the process lifetime. Falls back gracefully when Prettier is
 * missing or plugins crash.
 */
/**
 * Format code with the consumer project's Prettier, loading it from the
 * workspace that owns `filepath` (the nearest ancestor with a `package.json`).
 *
 * Behavior:
 *   1. Tries with plugins declared in the consumer's `.prettierrc`.
 *   2. If plugins crash on the first attempt, retries without them and
 *      remembers the decision per workspace.
 *   3. Returns the original code unchanged if Prettier is not installed in
 *      that workspace.
 */
export declare function formatCode(code: string, filepath: string): Promise<string>;
