2020-09-23 05:54:48 +03:00
|
|
|
declare module "aes-js" {
|
|
|
|
export class Counter {
|
|
|
|
constructor(iv: Uint8Array);
|
|
|
|
}
|
2020-10-03 09:20:50 +03:00
|
|
|
|
2020-09-23 05:54:48 +03:00
|
|
|
export namespace ModeOfOperation {
|
|
|
|
class cbc{
|
|
|
|
constructor(key: Uint8Array, iv: Uint8Array);
|
|
|
|
decrypt(data: Uint8Array): Uint8Array;
|
|
|
|
encrypt(data: Uint8Array): Uint8Array;
|
|
|
|
}
|
2020-10-03 09:20:50 +03:00
|
|
|
|
2020-09-23 05:54:48 +03:00
|
|
|
class ctr{
|
|
|
|
constructor(key: Uint8Array, counter: Counter);
|
|
|
|
decrypt(data: Uint8Array): Uint8Array;
|
|
|
|
encrypt(data: Uint8Array): Uint8Array;
|
|
|
|
}
|
|
|
|
}
|
2020-10-03 09:20:50 +03:00
|
|
|
|
2020-09-23 05:54:48 +03:00
|
|
|
export namespace padding {
|
|
|
|
export namespace pkcs7 {
|
|
|
|
export function strip(data: Uint8Array): Uint8Array;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-09-21 08:14:06 +03:00
|
|
|
|
2020-10-03 09:20:50 +03:00
|
|
|
declare module "libnpmpublish" {
|
|
|
|
export type Options = {
|
|
|
|
access?: "public" | "restricted";
|
|
|
|
npmVersion?: string;
|
|
|
|
otp?: string;
|
|
|
|
token?: string;
|
2020-09-21 08:14:06 +03:00
|
|
|
};
|
|
|
|
|
2020-10-03 09:20:50 +03:00
|
|
|
export function publish(path: string, manifest: string, options: Options): Promise<void>
|
2020-09-21 08:14:06 +03:00
|
|
|
}
|