how to write typescript definition file for this javascript library?
<p>I need call the following javascript:</p>

<pre><code>var jslib = jslib || (function() {
var publicMethods = {
    encrypt: function (algorithm, keyHandle, buffer) {
        // implementation
    }
};

return publicMethods;
})();
</code></pre>

<p>I am new to typescript, can you please share what the typescript definition will look like for the javascript above and invoke pattern?</p>

<p>Thanks in advance.</p>