import 'reflect-metadata'; /** Metadata stored by the globalFor class decorator. */ export interface GlobalForMetadata { /** The type anchoring the logical identity this shared handler applies its mappings to. */ readonly identity: Function; } /** * Class decorator that declares a shared handler class whose mappings apply to every variant * of the given identity, without repeating them on each variant type. A mapping that targets * a member some variant lacks is a declaration error, not a silently skipped mapping. * * A class decorated only with globalFor is never registered as a projection on its own - it is * merged into every variant of its identity before those variants are registered. * @param identity - The type anchoring the logical identity this handler's mappings apply to. * @returns A class decorator. */ export declare function globalFor(identity: Function): ClassDecorator; /** * Retrieves globalFor metadata stored on the given class constructor. * @param target - The class constructor. * @returns The globalFor metadata, or undefined if the class is not a shared handler. */ export declare function getGlobalForMetadata(target: Function): GlobalForMetadata | undefined; //# sourceMappingURL=globalFor.d.ts.map