import { Nitro } from "nitropack/types"; //#region src/utils/file-generator.d.ts /** * Safely write a file to disk, creating parent directories if needed */ declare function writeFile(filePath: string, content: string, description?: string): void; /** * Write a file only if it doesn't already exist * Returns true if file was created, false if it already existed */ declare function writeFileIfNotExists(filePath: string, content: string, description?: string): boolean; /** * Write a file and always overwrite (used for generated files like SDK) * This is for files that are auto-generated and should be updated on every build */ declare function writeGeneratedFile(filePath: string, content: string, description?: string): void; /** * Check if a path is configured and should be generated * Returns the resolved path if should generate, null otherwise */ declare function getGenerationPath(resolvedPath: string | null, description?: string): string | null; /** * Log skipped file generation (helpful for debugging library mode) */ declare function logSkipped(fileName: string, reason?: string): void; /** * Log generated file path */ declare function logGenerated(fileName: string, path: string): void; /** * Validate that a Nitro instance has the required GraphQL configuration */ declare function validateGraphQLConfig(nitro: Nitro): boolean; //#endregion export { getGenerationPath, logGenerated, logSkipped, validateGraphQLConfig, writeFile, writeFileIfNotExists, writeGeneratedFile };