import type { OasOperationProjection } from './types.js'; import type { OasOperation } from '../../../oas/operation/Operation.js'; import type { ContentSettings } from '../../ContentSettings.js'; import type { GeneratedDefinition } from '../../GeneratedValue.js'; import type { GeneratedValue } from '../../GeneratedValue.js'; import type { GenerateContextType, InsertOasOperationArgs } from '../../../context/generateTypes.js'; /** * The `insertOperation` call plus the context. The Driver defaults * `variant` to `'main'` and `noExport` to `false`, and reads the caller's * options once for the identity statics and the constructor. */ type CreateOperationArgs = InsertOasOperationArgs & { context: GenerateContextType; }; /** * Driver for the OAS operation insertion lifecycle. * * Resolves the projection's identifier and export path, looks up an * existing `Definition` in the target file, instantiates the projection * (constructing its value) when no cache hit exists, registers the new * definition, and stitches an import into `destinationPath` if it differs * from the projection's `exportPath`. */ export declare class OasOperationDriver { #private; context: GenerateContextType; projection: OasOperationProjection; operation: OasOperation; settings: ContentSettings; destinationPath?: string; definition: GeneratedDefinition; noExport: boolean; variant: string; /** The caller's options, as passed to `insertOperation`. */ options: ProjectionOptions; constructor(args: CreateOperationArgs); private apply; /** * Ensure the file at `path` exists, creating it on first write through * the projection's language — the static read off the projection class * at the use site, never persisted (works pre-construction on the * cache-hit path). Returns the normalized path. */ private ensureFile; private getDefinition; private affirmDefinition; } export {};