/** * Relationship helpers for dataset definitions. * * These helpers currently define semantic model metadata only. The shipped * semantic client does not yet resolve relationship paths into joined dataset queries * or cross-dataset metrics. * * @example * ```ts * const Orders = dataset("orders", { * source: "orders", * fields: { ... }, * relationships: { * customer: belongsTo(() => Customers, { from: "customerId", to: "id" }), * }, * }); * ``` */ import type { RelationshipDefinition } from './types.js'; /** Many-to-one relationship (FK on this table). */ export declare function belongsTo(target: () => TTarget, join: { from: string; to: string; }): RelationshipDefinition; /** One-to-many relationship (FK on target table). */ export declare function hasMany(target: () => TTarget, join: { from: string; to: string; }): RelationshipDefinition; /** One-to-one relationship (FK on target table). */ export declare function hasOne(target: () => TTarget, join: { from: string; to: string; }): RelationshipDefinition; //# sourceMappingURL=relationships.d.ts.map