import type SchemaBuilder from '@pothos/core'; import type { SchemaView } from '@fougere/schema'; import type { OperationMeta } from './OperationMeta.js'; export interface OperationsConfig { /** Entity name (PascalCase) — what a root field is named after: `listAuthor`. */ name: string; /** * What the types it builds are named after, its frond first; defaults to `name`. * Ex: `BlogAuthor`. */ typeName?: string; /** GraphQL entity type ref (from registerType). */ type: any; /** Handler facade — each op receives InvocationContext. */ facade: Record; /** Operations metadata from scanner (signature + resolved schemas). */ operations: Map; /** * Who is registering, named when two ops claim one root field. * Ex: `catalog/ChapterHandler`. */ origin?: string; /** The GraphQL type for a schema an operation declares as its return. */ viewType?: (view: SchemaView, opName: string) => any; } /** Register all GraphQL operations for an entity from parsed handler signatures. */ export declare function registerOperations(builder: InstanceType, config: OperationsConfig): void; //# sourceMappingURL=OperationsConfig.d.ts.map