import DataType from "./DataType"; import Element from "../modelInfo/Element"; import FilePath from "./FilePath"; export declare const enum RelationshipType { EmbedsOne = "embeds_one", EmbedsMany = "embeds_many", BelongsTo = "belongs_to", HasOne = "has_one", HasMany = "has_many", HasAndBelongsToMany = "has_and_belongs_to_many" } export default class MemberVariable { readonly dataType: DataType; readonly variableName: string; readonly isArray: boolean; readonly relationshipType: RelationshipType; readonly bidirectional: boolean; readonly choiceTypes: Array; constructor(dataType: DataType, variableName: string, isArray?: boolean, relationshipType?: RelationshipType, bidirectional?: boolean, choiceTypes?: Array); clone(): MemberVariable; clearChoices(): MemberVariable; /** * Convert an array of various Element types into an array of MemberVariables */ static createMemberVariables(elements: Array, baseDir: string): Array; static createMemberVariables(elements: Array, baseDir: FilePath): Array; /** * Convert a single Element of any type into an array of MemberVariables. * SimpleElement and ListElement parameters will return an array with one MemberVariable, * while ChoiceElement parameters will result in one MemberVariable per choice. */ static createMemberVariable(element: Element, baseDir: FilePath): MemberVariable; static createMemberVariable(element: Element, baseDir: string): MemberVariable; } //# sourceMappingURL=MemberVariable.d.ts.map