/** * PHP code generation orchestrator. * * Reads schemas.json and generates all Laravel PHP files: * - BaseModel, Models * - Form Requests (Store + Update) * - API Resources * - Factories * - Traits * - Locales * - OmnifyServiceProvider */ import type { SchemasJson } from '../types.js'; import type { GeneratedFile, LaravelCodegenOverrides } from './types.js'; export type { GeneratedFile, PhpConfig, LaravelCodegenOverrides } from './types.js'; export { derivePhpConfig } from './types.js'; export interface GeneratePhpOptions { /** * Issue #255: a disabled scaffold layer still regenerates the BASE files a * hand-written subclass extends, so they never freeze out of step with the * schema. The caller answers "does a subclass exist for this base?" (the CLI * checks the disk); omitted, a disabled layer emits nothing, as before. */ readonly keepDisabledBase?: (file: GeneratedFile) => boolean; } /** Generate all PHP files from schemas.json data. */ export declare function generatePhp(data: SchemasJson, overrides?: LaravelCodegenOverrides, options?: GeneratePhpOptions): GeneratedFile[];