import { JsonSchema, PolarisConstructor } from '../../../util'; import { ObjectKind, PolarisTransformationConfig, PolarisTransformationServiceManager, PolarisTransformer } from '../common'; /** * The default implementation of the {@link PolarisTransformationServiceManager}. * * @note Please extend this class if you want to create your own `PolarisTransformationService`. */ export declare class DefaultPolarisTransformationService implements PolarisTransformationServiceManager { private _defaultTransformer; private knownObjectKinds; get defaultTransformer(): PolarisTransformer; changeDefaultTransformer(newDefaultTransformer: PolarisTransformer): void; registerTransformer(polarisType: PolarisConstructor, transformer: PolarisTransformer, config?: PolarisTransformationConfig): void; registerObjectKind(kind: ObjectKind, polarisType: PolarisConstructor, transformer?: PolarisTransformer, config?: PolarisTransformationConfig): void; transformToPolarisObject(polarisType: PolarisConstructor, orchPlainObj: any): T; transformToPolarisObject(polarisType: PolarisConstructor, orchPlainObjArray: any[]): T[]; transformToPolarisObject(kind: ObjectKind, orchPlainObj: any): any; transformToPolarisObject(kind: ObjectKind, orchPlainObjArray: any[]): any[]; transformToOrchestratorPlainObject(polarisObj: any): any; transformToOrchestratorPlainObject(polarisObj: any[]): any[]; transformToOrchestratorSchema(polarisSchema: JsonSchema, polarisType: PolarisConstructor): JsonSchema; getPropertyType(polarisType: PolarisConstructor, propertyKey: keyof T & string): PolarisConstructor; getPolarisType(kind: ObjectKind): PolarisConstructor; private getTransformer; private transformSingleObjToOrchestratorPlainObj; private transformSingleObjToOrchestratorSchema; private transformArrayToOrchestratorSchema; /** * Recursively fixes the following issues in a schema: * * - Converts `additionalProperties: {}`, which is generated for a `Record` to `additionalProperties: true`. */ private applyOrchestratorSchemaFixes; }