import { type EntityClass, type IndexOptions, type UniqueOptions } from '@mikro-orm/core';
/** Defines a database index on a property or entity class (legacy TypeScript decorator). */
export declare function Index<T extends object, H extends string>(
  options?: IndexOptions<T, H>,
): (target: T, propertyName?: T extends EntityClass<unknown> ? undefined : keyof T) => any;
/** Defines a unique constraint on a property or entity class (legacy TypeScript decorator). */
export declare function Unique<T extends object, H extends string>(
  options?: UniqueOptions<T, H>,
): (target: T, propertyName?: T extends EntityClass<unknown> ? undefined : keyof T) => any;
