import 'reflect-metadata'; import { ConstraintId } from './ConstraintId.js'; /** * Metadata stored on a constraint class. */ export interface ConstraintMetadata { /** The unique identifier for the constraint. */ readonly id: ConstraintId; } /** * TypeScript decorator that marks a class as an event constraint. * The decorated class may implement {@link IConstraint} to define the constraint rules. * @param id - The unique identifier for the constraint. Defaults to the class name if omitted. * @returns A class decorator. */ export declare function constraint(id?: string): ClassDecorator; /** * Gets the {@link ConstraintMetadata} associated with a class decorated with {@link constraint}. * @param target - The class constructor to retrieve metadata for. * @returns The associated metadata, or undefined if not decorated. */ export declare function getConstraintMetadata(target: Function): ConstraintMetadata | undefined; /** * Checks whether a class has been decorated with {@link constraint}. * @param target - The class constructor to check. * @returns True if the class has a constraint decorator; false otherwise. */ export declare function isConstraint(target: Function): boolean; //# sourceMappingURL=constraint.d.ts.map