declare global {
	interface WindowOrWorkerGlobalScope {
		readonly msCrypto: Crypto;
	}
}
declare class XSalsa20CSPRNG {
	private xsalsa;
	constructor();
	static of(nonce: Uint8Array, key: Uint8Array): XSalsa20CSPRNG;
	randomInt32(): number;
	randomUint32(): number;
	uniformInt(exclusive_upper_bound: number): number;
}
declare class XSalsa20 {
	private xsalsa;
	private buffer;
	constructor(nonce: Uint8Array, key: Uint8Array);
	stream(length: number): Uint8Array;
	update(input: Uint8Array, output?: Uint8Array): Uint8Array;
}

export { XSalsa20, XSalsa20CSPRNG as default };
