import { Builder } from "./Builder"; declare class Join { protected builder: Builder; protected type: 'INNER_JOIN' | 'LEFT_JOIN' | 'RIGHT_JOIN' | 'CROSS_JOIN'; private join; constructor(builder: Builder, type?: 'INNER_JOIN' | 'LEFT_JOIN' | 'RIGHT_JOIN' | 'CROSS_JOIN'); /** * The 'on' method is used to Adds an ON condition to the current JOIN clause. * * Creates a join condition by comparing two column references. * Both parameters must be fully qualified column names in the * format `table.column`. * * @param localKey - The local column reference (e.g. `users.id`). * @param referenceKey - The referenced column reference (e.g. `posts.user_id`). * * @returns The current join builder instance for method chaining. * * @example * new User() * .join((join) => join.on('users.id', 'posts.user_id')); * */ on(localKey: `${string}.${string}`, referenceKey: `${string}.${string}`): this; /** * The 'and' method is used to Adds an additional condition to the current JOIN ON clause using AND. * * This method must be called after `.on()`. * * @param localKey - The left-side column reference. * @param referenceKey - The right-side column reference. * * @returns The current join builder instance. * * @example * new User() * .join((join) => * join * .on('users.id', 'posts.user_id') * .and('posts.type', 'article') * .and('posts.published', true) * ); */ and(localKey: `${string}.${string}`, referenceKey: `${string}.${string}` | string | number | boolean | null | (string | number | boolean | null)[]): this; and(localKey: `${string}.${string}`, operator: "=" | "<" | ">" | "!=" | "<>" | "<=" | ">=" | "LIKE" | "like", referenceKey?: `${string}.${string}` | string | number | boolean | null | (string | number | boolean | null)[]): this; /** * The 'or' method is used to Adds an additional condition to the current JOIN ON clause using OR. * * This method must be called after `.on()`. * * @param localKey - The left-side column reference. * @param referenceKey - The right-side column reference. * * @returns The current join builder instance. * * @example * new User() * .join((join) => * join * .on('users.id', 'posts.user_id') * .or('posts.type', 'article') * .or('posts.published', true) * ); */ or(localKey: `${string}.${string}`, referenceKey: `${string}.${string}` | string | number | boolean | null | (string | number | boolean | null)[]): this; or(localKey: `${string}.${string}`, operator: "=" | "<" | ">" | "!=" | "<>" | "<=" | ">=" | "LIKE" | "like", referenceKey?: `${string}.${string}` | string | number | boolean | null | (string | number | boolean | null)[]): this; protected toString(): string; private formatValue; } export { Join }; export default Join;