import type { ModelRef } from "./types.js"; export type RelationDef = { readonly kind: K; readonly target: ModelRef; }; export type RelationKind = "belongsTo" | "embeds" | "hasMany"; export declare const hasMany: (target: ModelRef) => RelationDef<"hasMany">; export declare const belongsTo: (target: ModelRef) => RelationDef<"belongsTo">; /** * Embedded child collection — the child's props nest inline as an array * (`key: ChildProps[]`) instead of normalized id refs. For denormalized * aggregates / tree structures; recurses through the child's own embeds. */ export declare const embeds: (target: ModelRef) => RelationDef<"embeds">; //# sourceMappingURL=relations.d.ts.map