import { DidStdFee, ISignInputs, MsgCreateResourcePayload } from '@swisstronik/sdk'; import { AccountData, Coin } from '@cosmjs/proto-signing'; import { GasPrice, DeliverTxResponse } from '@cosmjs/stargate'; import { DIDDocument } from 'did-resolver'; import { IIdentifier, IKey, IService } from '@veramo/core'; import { AbstractIdentifierProvider } from '@veramo/did-manager'; import { EnglishMnemonic as _ } from '@cosmjs/crypto'; import { LitCompatibleCosmosChain, LitNetwork } from '../dkg-threshold'; import { IContext } from '../types'; export declare const DefaultRPCUrls: { readonly 0: "http://127.0.0.1:26657"; }; export declare const DefaultRESTUrls: { readonly 0: "https://api.example.net"; }; export declare const DefaultDkgSupportedChains: { readonly 0: "swisstronik"; }; export declare const DefaultStatusList2021StatusPurposeTypes: { readonly revocation: "revocation"; readonly suspension: "suspension"; }; export declare const DefaultStatusList2021ResourceTypes: { readonly default: "StatusList2021"; readonly revocation: "StatusList2021Revocation"; readonly suspension: "StatusList2021Suspension"; }; export declare const DefaultStatusList2021Encodings: { readonly base64: "base64"; readonly base64url: "base64url"; readonly hex: "hex"; }; export type DefaultRPCUrl = typeof DefaultRPCUrls[keyof typeof DefaultRPCUrls]; export type DefaultRESTUrl = typeof DefaultRESTUrls[keyof typeof DefaultRESTUrls]; export type DefaultStatusList2021ResourceType = typeof DefaultStatusList2021ResourceTypes[keyof typeof DefaultStatusList2021ResourceTypes]; export type DefaultStatusList2021StatusPurposeType = typeof DefaultStatusList2021StatusPurposeTypes[keyof typeof DefaultStatusList2021StatusPurposeTypes]; export type DefaultStatusList2021Encoding = typeof DefaultStatusList2021Encodings[keyof typeof DefaultStatusList2021Encodings]; export type LinkedResource = Omit & { data?: string; }; export type ResourcePayload = Partial; export type StatusList2021ResourcePayload = ResourcePayload & { resourceType: DefaultStatusList2021ResourceType; }; export type TImportableEd25519Key = Required> & { kid: TImportableEd25519Key['publicKeyHex']; type: 'Ed25519'; }; export type TSupportedKeyType = 'Ed25519' | 'Secp256k1'; export declare class EnglishMnemonic extends _ { static readonly _mnemonicMatcher: RegExp; } /** * {@link @veramo/did-manager#DIDManager} identifier provider for `did:swtr`identifiers. * @public */ export declare class SwisstronikDIDProvider extends AbstractIdentifierProvider { private defaultKms; readonly rpcUrl: string; private readonly cosmosPayerWallet; readonly dkgOptions: { chain: Extract; network: LitNetwork; }; private sdk?; private fee?; static readonly defaultGasPrice: GasPrice; constructor(options: { defaultKms: string; cosmosPayerSeed: string; rpcUrl?: string; dkgOptions?: { chain?: Extract; network?: LitNetwork; }; }); getWalletAccounts(): Promise; private getIdentitySDK; createIdentifier({ kms, options }: { kms?: string; alias?: string; options: { document: DIDDocument; keys?: TImportableEd25519Key[]; versionId?: string; fee?: DidStdFee; }; }, context: IContext): Promise>; updateIdentifier({ did, document, options }: { did: string; document: DIDDocument; options: { kms: string; keys?: TImportableEd25519Key[]; versionId?: string; fee?: DidStdFee; }; }, context: IContext): Promise; deactivateIdentifier({ did, document, options }: { did: string; document: DIDDocument; options: { keys?: TImportableEd25519Key[]; fee?: DidStdFee; versionId?: string; }; }, context: IContext): Promise; createResource({ options }: { options: { payload: ResourcePayload; signInputs?: ISignInputs[]; kms?: string; fee?: DidStdFee; }; }, context: IContext): Promise; deleteIdentifier(identity: 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; transactSendTokens(args: { recipientAddress: string; amount: Coin; memo?: string; txBytes?: Uint8Array; timeoutMs?: number; pollIntervalMs?: number; }): Promise; private signPayload; private getKeysFromVerificationMethod; } export declare function createMsgCreateDidDocPayloadToSign(didPayload: DIDDocument, versionId: string): Promise; export declare function createMsgDeactivateDidDocPayloadToSign(didPayload: DIDDocument, versionId?: string): Promise; //# sourceMappingURL=didProvider.d.ts.map