import http from 'node:http'; import https from 'node:https'; import type { Ctx, SignatureRes, PlatformUtils, TPregenIdentifierType, TWalletType } from '@getpara/core-sdk'; import { BackupKitEmailProps, SDKType } from '@getpara/user-management-client'; import { ServerLocalStorage } from './ServerLocalStorage.js'; import { ServerSessionStorage } from './ServerSessionStorage.js'; export declare class ServerUtils implements PlatformUtils { sdkType: SDKType; getRequestAgents(): { httpAgent: http.Agent; httpsAgent: https.Agent; }; getPrivateKey(ctx: Ctx, userId: string, walletId: string, share: string, sessionCookie: string): Promise; getED25519PrivateKey(ctx: Ctx, userId: string, walletId: string, share: string, sessionCookie: string): Promise; keygen(ctx: Ctx, userId: string, type: Exclude, secretKey: string | null, sessionCookie: string, emailProps?: BackupKitEmailProps): Promise<{ signer: string; walletId: string; }>; refresh(_ctx: Ctx, _sessionCookie: string, _userId: string, _walletId: string, _share: string, _oldPartnerId?: string, _newPartnerId?: string): Promise<{ signer: string; }>; preKeygen(ctx: Ctx, partnerId: string, pregenIdentifier: string, pregenIdentifierType: TPregenIdentifierType, type: Exclude, secretKey: string | null, // should be acceptable as null in RN as we don't pre-gen them sessionCookie: string): Promise<{ signer: string; walletId: string; }>; signMessage(ctx: Ctx, userId: string, walletId: string, share: string, message: string, sessionCookie: string, isDKLS?: boolean): Promise; signTransaction(ctx: Ctx, userId: string, walletId: string, share: string, message: string, chainId: string, sessionCookie: string, isDKLS?: boolean): Promise; sendTransaction(ctx: Ctx, userId: string, walletId: string, share: string, tx: string, chainId: string, sessionCookie: string, isDKLS?: boolean): Promise; signHash(_address: string, _hash: string): Promise<{ v: number; r: Buffer; s: Buffer; }>; ed25519Keygen(ctx: Ctx, userId: string, sessionCookie: string, emailProps?: BackupKitEmailProps, type?: TWalletType): Promise<{ signer: string; walletId: string; }>; ed25519PreKeygen(ctx: Ctx, pregenIdentifier: string, pregenIdentifierType: TPregenIdentifierType, sessionCookie: string, type?: TWalletType): Promise<{ signer: string; walletId: string; }>; ed25519Sign(ctx: Ctx, userId: string, walletId: string, share: string, base64Bytes: string, sessionCookie: string): Promise; localStorage: ServerLocalStorage; sessionStorage: ServerSessionStorage; secureStorage: any; isSyncStorage: boolean; disableProviderModal: boolean; openPopup(_popupUrl: string): Promise; initializeWorker(ctx: Ctx): Promise; addEventListener(): void; removeEventListener(): void; postMessage(): void; emitEvent(): void; }