disambiguateEncryptArguments(args) {
        if (typeof args[0] === "string") {
            // Sample shape: ["RSA1_5", buffer, options]
            return [
                {
                    algorithm: args[0],
                    plaintext: args[1]
                },
                args[2] || {}
            ];
        }
        else {
            // Sample shape: [{ algorithm: "RSA1_5", plaintext: buffer }, options]
            return [args[0], (args[1] || {})];
        }
    }
/**
     * Standardizes the arguments of multiple overloads into a single shape.
     * @param args - The encrypt arguments
     */
Standardizes the arguments of multiple overloads into a single shape.
@param args - The encrypt arguments
Standardizes the arguments of multiple overloads into a single shape . @param args - The encrypt arguments
disambiguateEncryptArguments(args) {
        if (typeof args[0] === "string") {
            return [
                {
                    algorithm: args[0],
                    plaintext: args[1]
                },
                args[2] || {}
            ];
        }
        else {
            return [args[0], (args[1] || {})];
        }
    }
disambiguateEncryptArguments ( args ) { if ( typeof args [ 0 ] === "string" ) { return [ { algorithm : args [ 0 ] , plaintext : args [ 1 ] } , args [ 2 ] || { } ] ; } else { return [ args [ 0 ] , ( args [ 1 ] || { } ) ] ; } }
Standardizes the arguments of multiple overloads into a single shape.
Standardizes the arguments of multiple overloads into a single shape .
// Sample shape: ["RSA1_5", buffer, options] // Sample shape: [{ algorithm: "RSA1_5", plaintext: buffer }, options]