export interface SignOptions { header: Record; payload: Record; privateKey: string; } export interface JWT { decode(token: string): { header: any; payload: string; signature: string; } | null; sign(options: SignOptions): Promise; verify(token: string, algorithm: string, publicKey: string): Promise; } /** * Convert PKCS#1 RSA PRIVATE KEY to PKCS#8 format * This wraps the PKCS#1 key with the PKCS#8 structure * @internal Exported for testing purposes */ export declare function convertPKCS1ToPKCS8(pkcs1Pem: string): string; export declare const jwt: JWT;