import { Buffer } from 'buffer'; import { Algorithm } from '@phantom/openapi-wallet-service'; export { Algorithm } from '@phantom/openapi-wallet-service'; export { Transaction, VersionedTransaction } from '@solana/web3.js'; interface Stamper { stamp(params: { data: Buffer; type?: "PKI"; idToken?: never; salt?: never; }): Promise; stamp(params: { data: Buffer; type: "OIDC"; idToken: string; salt: string; }): Promise; algorithm: Algorithm; type: "PKI" | "OIDC"; idToken?: string; salt?: string; } interface StamperKeyInfo { keyId: string; publicKey: string; createdAt?: number; authenticatorId?: string; } interface StamperWithKeyManagement extends Stamper { init(): Promise; getKeyInfo(): StamperKeyInfo | null; resetKeyPair(): Promise; clear(): Promise; rotateKeyPair(): Promise; commitRotation(authenticatorId: string): Promise; rollbackRotation(): Promise; } export { Stamper, StamperKeyInfo, StamperWithKeyManagement };