@mui/internal-docs-infra
Version:
MUI Infra - internal documentation creation tools.
11 lines • 553 B
text/typescript
/**
* Returns whether a path exists on disk. Used to decide whether an
* auto-generated sibling file (e.g. `client.ts`, `page.ts`) already exists so
* the validate passes never overwrite developer-authored files.
*/
export declare function fileExists(filePath: string): Promise<boolean>;
/**
* Formats `content` with the project's prettier configuration for `filePath`.
* Falls back to the original content when prettier is not installed or fails.
*/
export declare function formatWithPrettier(content: string, filePath: string): Promise<string>;