Files
NapCatQQ/.pnpm-store/v3/files/1c/f9abfda544c3e009922bb4f98108c8dfc7e85dec89d9ba3cabd2a4ee11508c74f8633e59d55d34e04394e949588058f41bd56da8b921009f807a6d2c604f32
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

86 lines
1.9 KiB
Plaintext

export declare function detectBi(): void;
declare abstract class SharedPbLong {
/**
* Low 32 bits.
*/
readonly lo: number;
/**
* High 32 bits.
*/
readonly hi: number;
/**
* Create a new instance with the given bits.
*/
constructor(lo: number, hi: number);
/**
* Is this instance equal to 0?
*/
isZero(): boolean;
/**
* Convert to a native number.
*/
toNumber(): number;
/**
* Convert to decimal string.
*/
abstract toString(): string;
/**
* Convert to native bigint.
*/
abstract toBigInt(): bigint;
}
/**
* 64-bit unsigned integer as two 32-bit values.
* Converts between `string`, `number` and `bigint` representations.
*/
export declare class PbULong extends SharedPbLong {
/**
* ulong 0 singleton.
*/
static ZERO: PbULong;
/**
* Create instance from a `string`, `number` or `bigint`.
*/
static from(value: string | number | bigint): PbULong;
/**
* Convert to decimal string.
*/
toString(): string;
/**
* Convert to native bigint.
*/
toBigInt(): bigint;
}
/**
* 64-bit signed integer as two 32-bit values.
* Converts between `string`, `number` and `bigint` representations.
*/
export declare class PbLong extends SharedPbLong {
/**
* long 0 singleton.
*/
static ZERO: PbLong;
/**
* Create instance from a `string`, `number` or `bigint`.
*/
static from(value: string | number | bigint): PbLong;
/**
* Do we have a minus sign?
*/
isNegative(): boolean;
/**
* Negate two's complement.
* Invert all the bits and add one to the result.
*/
negate(): PbLong;
/**
* Convert to decimal string.
*/
toString(): string;
/**
* Convert to native bigint.
*/
toBigInt(): bigint;
}
export {};