import { type SQL, type AnyColumn } from "drizzle-orm"; /** * TiDB / MySQL bit expressions for Drizzle `sql` fragments. * @see https://docs.pingcap.com/tidb/stable/bit-functions-and-operators * * Prefer bit literals (`b'…'`) or numeric expressions as documented; string arguments are interpreted differently by `BIT_COUNT()`. */ export type BitSqlInput = SQL | AnyColumn | string | number | boolean; /** `BIT_COUNT(expr)` */ export declare function bitCount(expr: BitSqlInput): SQL; /** `(a & b)` — bitwise AND */ export declare function bitAnd(a: BitSqlInput, b: BitSqlInput): SQL; /** `(~a)` — bitwise inversion (64-bit expansion per MySQL 8 / TiDB) */ export declare function bitNot(a: BitSqlInput): SQL; /** `(a | b)` — bitwise OR */ export declare function bitOr(a: BitSqlInput, b: BitSqlInput): SQL; /** `(a ^ b)` — bitwise XOR */ export declare function bitXor(a: BitSqlInput, b: BitSqlInput): SQL; /** `(a << n)` — left shift */ export declare function bitShl(a: BitSqlInput, n: BitSqlInput): SQL; /** `(a >> n)` — right shift */ export declare function bitShr(a: BitSqlInput, n: BitSqlInput): SQL; //# sourceMappingURL=BitTiDB.d.ts.map