import Field from './Field'; import { Cascade } from '@mikro-orm/core'; export declare class RelationshipField extends Field { isRelationshipField: boolean; /** * Will be used as the label for showing * this field on forms * */ relationshipLabel: string; /** * When a new date string is initialized, it defaults the * date to today's date. */ constructor(name: string, databaseField?: string); cascades(cascades: Cascade[]): this; owner(): this; alwaysLoad(): this; label(label: string): this; foreignKey(foreignKey: string): this; serialize(): { label: string; name: string; sidebar: boolean; isVirtual: boolean; component: { form: string; index: string; detail: string; }; inputName: string; isSortable: boolean; isFilterable: boolean; description: string; rules: string[]; defaultValue: any; isNullable: boolean; isUnique: boolean; isSearchable: boolean; showOnIndex: boolean; showOnDetail: boolean; showOnUpdate: boolean; showOnCreation: boolean; updateRules: string[]; creationRules: string[]; hidden: boolean; showOnPanel: boolean; fieldName: string; camelCaseName: string; capsDatabasefieldName: string; databaseField: string; attributes: { [key: string]: string; }; selectOptions?: { label: string; value: string; }[] | undefined; defaultToNow?: boolean | undefined; isUnsigned?: boolean | undefined; trueLabel?: string | undefined; falseLabel?: string | undefined; isRelationshipField: boolean; camelCaseNamePlural: string; pascalCaseName: string; snakeCaseName: string; snakeCaseNamePlural: string; }; } export default RelationshipField;