import { type EntityName, type OneToOneOptions } from '@mikro-orm/core';
/** Defines a one-to-one relationship (legacy TypeScript decorator). */
export declare function OneToOne<Target, Owner>(
  entity: (e: Owner) => EntityName<Target> | EntityName[],
  mappedByOrOptions?: (string & keyof Target) | ((e: Target) => any) | Partial<OneToOneOptions<Owner, Target>>,
  options?: Partial<OneToOneOptions<Owner, Target>>,
): (target: Owner, propertyName: string) => void;
export declare function OneToOne<Target, Owner>(
  entity?: OneToOneOptions<Owner, Target>,
): (target: Owner, propertyName: string) => void;
