/** * Typed Bitwise Functions (Parallel-First) * * Polymorphic bitwise operations using typed-function for runtime * dispatch. Supports `number`, `BigNumber`, `bigint`, and `Int32Array`. * * Following the parallel-first philosophy per CLAUDE.md: * - Use the `ComputePool` for ALL `Int32Array` transformations. * - Use native ops on scalar inputs (no worker dispatch overhead). * * BigNumber bitwise semantics: the mathjs-derived helpers in * `functions/src/utils/bignumber/bitwise.ts` operate on the * `decimal.js`-internal coefficient layout (`x.d` / `x.e` / `x.s`), * which `@danielsimonjr/mathts-core`'s `BigNumber` does not expose. * We therefore reimplement the BigNumber path by routing through * native `bigint` when the operand is a finite integer — that * matches what the mathjs path does on integers anyway. NaN / * non-integer inputs throw, mirroring mathjs behavior. * * @packageDocumentation */ /** * Polymorphic bitwise AND. * * @example * ```typescript * bitAnd(0b1010, 0b1100); // 0b1000 * bitAnd(53n, 131n); // 1n * await bitAnd(int32A, int32B); // Parallel Int32Array AND * ``` */ export declare const bitAnd: import("@danielsimonjr/mathts-core").TypedFunction; export declare const bitOr: import("@danielsimonjr/mathts-core").TypedFunction; export declare const bitXor: import("@danielsimonjr/mathts-core").TypedFunction; export declare const bitNot: import("@danielsimonjr/mathts-core").TypedFunction; export declare const leftShift: import("@danielsimonjr/mathts-core").TypedFunction; export declare const rightArithShift: import("@danielsimonjr/mathts-core").TypedFunction; export declare const rightLogShift: import("@danielsimonjr/mathts-core").TypedFunction; export declare const typedBitwise: { bitAnd: import("@danielsimonjr/mathts-core").TypedFunction; bitOr: import("@danielsimonjr/mathts-core").TypedFunction; bitXor: import("@danielsimonjr/mathts-core").TypedFunction; bitNot: import("@danielsimonjr/mathts-core").TypedFunction; leftShift: import("@danielsimonjr/mathts-core").TypedFunction; rightArithShift: import("@danielsimonjr/mathts-core").TypedFunction; rightLogShift: import("@danielsimonjr/mathts-core").TypedFunction; }; //# sourceMappingURL=bitwise.d.ts.map