import integer from './integer'; export declare function isProbablePrime(n: integer): boolean; export declare class factorisation extends Array { constructor(n: integer | integer[]); dup(): factorisation; divisors(limit?: number): Generator; selfMul(other: factorisation | integer): factorisation; selfDiv(other: factorisation | integer): factorisation; mul(other: factorisation | integer): factorisation; div(other: factorisation | integer): factorisation; pow(exp: integer): factorisation; } export declare function isProbablePrimeB(n: bigint, witnesses?: Iterable | number): boolean; export declare class factorisationB extends Map { constructor(n: bigint | Iterable<[bigint, number]>); dup(): factorisationB; divisors(limit?: bigint): Generator; selfMul(other: factorisationB | bigint): factorisationB; selfDiv(other: factorisationB | bigint): factorisationB; mul(other: factorisationB | bigint): factorisationB; div(other: factorisationB | bigint): factorisationB; pow(exp: number): factorisationB; }