2019-05-15 01:25:46 +03:00
|
|
|
declare module "browserify-zlib" {
|
|
|
|
export interface ZlibOptions {
|
|
|
|
flush?: number;
|
|
|
|
finishFlush?: number;
|
|
|
|
chunkSize?: number;
|
|
|
|
windowBits?: number;
|
|
|
|
level?: number;
|
|
|
|
memLevel?: number;
|
|
|
|
strategy?: number;
|
|
|
|
dictionary?: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
type InputType = string | Buffer | DataView | ArrayBuffer;
|
|
|
|
|
|
|
|
export function gzipSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
|
|
export function gunzipSync(buf: InputType, options?: ZlibOptions): Buffer;
|
|
|
|
}
|
|
|
|
|
2020-11-17 07:07:24 +03:00
|
|
|
declare module "tiny-inflate" {
|
|
|
|
export function inflate(compressedBuffer: Uint8Array, outputBuffer: Uint8Array): void;
|
|
|
|
export default inflate;
|
|
|
|
}
|
|
|
|
|
2019-05-15 01:25:46 +03:00
|
|
|
declare module "*.json" {
|
|
|
|
const value: any;
|
|
|
|
export default value;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare module "ethereumjs-util" {
|
|
|
|
export function privateToAddress(privateKey: Buffer | Uint8Array): Buffer | Uint8Array;
|
|
|
|
export function toChecksumAddress(address: string): string;
|
|
|
|
export function keccak256(data: string): Buffer;
|
|
|
|
class BN {
|
|
|
|
constructor(value: string, radix: number);
|
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
declare module "solc" {
|
|
|
|
function compile(input: string): string;
|
|
|
|
}
|