export interface GenerateTypesOptions { /** Raw schema.graphql content */ typeDefs: string; /** Output file path */ outFile: string; /** Optional configuration */ config?: GenerateTypesConfig; } export interface GenerateTypesConfig { /** Enable MATCHES operator for string fields (default: true) */ stringMatchesFilter?: boolean; /** Format output with prettier (default: true) */ formatOutput?: boolean; /** Custom prettier configuration */ prettierConfig?: Record; /** Custom header comment prepended to the generated file */ header?: string; /** Package name used in generated import statements (default: 'grafeo-ogm') */ packageName?: string; } export interface GenerateTypesResult { /** Absolute path of the written file */ outputPath: string; /** Number of exported types / interfaces / enums */ typeCount: number; /** File size in bytes */ fileSize: number; /** Generation duration in milliseconds */ durationMs: number; /** Non-fatal warnings encountered during generation */ warnings: GeneratorWarning[]; } export interface GeneratorWarning { code: 'UNKNOWN_DIRECTIVE' | 'UNSUPPORTED_TYPE' | 'CIRCULAR_REFERENCE' | 'FORMATTING_SKIPPED'; message: string; location?: { typeName: string; fieldName?: string; }; } export declare class SchemaParseError extends Error { constructor(message: string); } export declare class OutputPathError extends Error { constructor(message: string); } export declare class EmptySchemaError extends Error { constructor(message: string); } /** * Parse a GraphQL schema, emit TypeScript type declarations, and write the * result to disk. */ export declare function generateTypes(options: GenerateTypesOptions): Promise; //# sourceMappingURL=generate-types.d.ts.map