import { MappingService } from '../MappingService'; import { Constructor } from '../types/Constructor'; import { IMappingKey } from '../types/MappingKey'; import { IMappingBuilder } from './interfaces/IMappingBuilder'; /** * A mapping builder that uses the mapping service to register maps. * * @public */ export declare class MappingBuilder implements IMappingBuilder { private readonly _service; /** * Constructs a new instance of the `{@link MappingBuilder}` class. * * @public */ constructor(service: MappingService); /** * Creates a mapping between two types. * Enforces compile-time type compatibility check. * * @public * @param source - The source type. * @param destination - The destination type. * @param fn - The mapping function. */ createMap(source: Constructor, destination: Constructor, fn: (source: TSource) => TDestination): this; /** * Creates a keyed mapping between two types with full type safety. * The mapping key encodes both input and output types at compile time. * * @public * @param key - The type-safe mapping key. * @param fn - The mapping function. */ createKeyedMap(key: IMappingKey, fn: (source: TInput) => TOutput): this; }