// Type definitions for netapps-crypto

interface jsrsasignStatic {

    //parse<T>(buffer: Buffer): T;
    //serialize(object: any): Buffer;

    KEYUTIL: any;
    asn1: any;
    X509: any;
    hextob64u: (str: string) => string;
    jws: any;
    b64utohex: (str: string) => string;
    b64tob64u: (str: string) => string;
    crypto: any;

}

declare module "@netapps/netapps-crypto" {
    var rsa: jsrsasignStatic;
    export = rsa;
}
