import { type Token } from "../core.js"; import { type ModelRef } from "../refs.js"; import type { ModelHandle } from "./model.js"; export type RelationshipRelation = "oneToOne" | "oneToMany" | "manyToOne"; export type RelationshipEndpointSpec = { model: ModelHandle | ModelRef; column: string; property?: string; }; export type RelationshipSpec = { from: RelationshipEndpointSpec; to: RelationshipEndpointSpec; relation: RelationshipRelation; }; export type RelationshipHandle = { readonly slug: string; readonly uuid: Token; readonly resource: "relationship"; }; export declare function defineRelationship(slug: string, spec: RelationshipSpec): RelationshipHandle; //# sourceMappingURL=relationship.d.ts.map