import { IFileMetadata } from '../parser/Parser'; import { Metadata, MetadataParamTypeDefinition } from '../parser/types/metadata'; import CodeStream from 'textstreamjs'; export interface IResolverOptions { generators: Map; current: IFileMetadata; parent: CodeStream | null; } /** * Represents the entity of an individual schema file * TODO: Do not extend `CodeStream` */ export default class Resolver extends CodeStream { #private; constructor({ generators, current, parent }: IResolverOptions); writeMultiLineComment(lines: (string | (() => void))[]): void; fileMetadata(): IFileMetadata; /** * Resolve a relative import path to a generator that holds the file metadata. We pass to this * method, the original import path that that was written by the user. This method will resolve * the relative path to an absolute path and then find the generator that holds the file metadata. * If the generator is not found, it will throw an exception. * @param value Relative import path to a schema file * @returns The generator that holds the file metadata */ resolveRelativeImportPath(value: string): Resolver; resolveMetadataParamTypeDefinition(paramType: MetadataParamTypeDefinition): Resolver; resolveMetadataFromParamTypeDefinition(paramType: MetadataParamTypeDefinition): Metadata; } //# sourceMappingURL=Resolver.d.ts.map