import { IIdentifier, IKey, IService, IAgentContext, IKeyManager } from '@veramo/core'; import { AbstractIdentifierProvider } from '@veramo/did-manager'; import { AccountId } from '@hashgraph/sdk'; import { WalletHedera } from './wallet-hedera'; import { SimpleHederaClient } from './hedera/service'; type IContext = IAgentContext; /** * Options for creating a did:ethr * @beta */ export interface CreateDidPkhOptions { network: 'eip155' | 'hedera'; /** * This can be hex encoded chain ID (string) or a chainId number * * If this is not specified, `1` is assumed. */ chainId?: string | number; hederaAccountId?: string; privateKey?: string; } /** * Helper method that can computes the ethereumAddress corresponding to a Secp256k1 public key. * @param hexPublicKey A hex encoded public key, optionally prefixed with `0x` */ export declare function toEthereumAddress(hexPublicKey: string): string; export declare function createClient(options: { walletHedera: WalletHedera; network: string; keyIndex: number; accountId: AccountId; }): Promise; export declare function checkHederaAccount(_privateKey: string, _accountId: string, _chainId: string): Promise; /** * {@link @veramo/did-manager#DIDManager} identifier provider for `did:pkh` identifiers * * @beta This API may change without a BREAKING CHANGE notice. */ export declare class PkhDIDProvider extends AbstractIdentifierProvider { private defaultKms; constructor(options: { defaultKms: string; }); createIdentifier({ kms, options }: { kms?: string; options?: CreateDidPkhOptions; }, context: IContext): Promise>; updateIdentifier(args: { did: string; kms?: string | undefined; alias?: string | undefined; options?: any; }, context: IAgentContext): Promise; deleteIdentifier(identifier: IIdentifier, context: IContext): Promise; addKey({ identifier, key, options }: { identifier: IIdentifier; key: IKey; options?: any; }, context: IContext): Promise; addService({ identifier, service, options }: { identifier: IIdentifier; service: IService; options?: any; }, context: IContext): Promise; removeKey(args: { identifier: IIdentifier; kid: string; options?: any; }, context: IContext): Promise; removeService(args: { identifier: IIdentifier; id: string; options?: any; }, context: IContext): Promise; } export {}; //# sourceMappingURL=pkh-did-provider.d.ts.map