fix: commit index.js and index.d.ts

This commit is contained in:
DecDuck
2025-03-27 11:56:22 +11:00
parent 1b35477b5c
commit bf2895fb71
3 changed files with 333 additions and 2 deletions

12
index.d.ts vendored Normal file
View File

@ -0,0 +1,12 @@
/* tslint:disable */
/* eslint-disable */
/* auto-generated by NAPI-RS */
export declare function callAltThreadFunc(callback: (...args: any[]) => any): void
export declare function generateManifest(dir: string, progress: (...args: any[]) => any, log: (...args: any[]) => any, callback: (...args: any[]) => any): void
export declare function generateRootCa(): Array<string>
export declare function generateClientCertificate(clientId: string, clientName: string, rootCa: string, rootCaPrivate: string): Array<string>
export declare function verifyClientCertificate(clientCert: string, rootCa: string): boolean
export declare function signNonce(privateKey: string, nonce: string): string
export declare function verifyNonce(publicCert: string, nonce: string, signature: string): boolean