import type { BaseRecordConstructor, AgentContext, BaseRecord, Query, StorageService } from '@aries-framework/core'; import { IndySdk } from '../types'; export declare class IndySdkStorageService implements StorageService { private indySdk; private static DEFAULT_QUERY_OPTIONS; constructor(indySdk: IndySdk); private transformToRecordTagValues; private transformFromRecordTagValues; /** * Transforms the search query into a wallet query compatible with indy WQL. * * The format used by AFJ is almost the same as the indy query, with the exception of * the encoding of values, however this is handled by the {@link IndyStorageService.transformToRecordTagValues} * method. */ private indyQueryFromSearchQuery; private recordToInstance; /** @inheritDoc */ save(agentContext: AgentContext, record: T): Promise; /** @inheritDoc */ update(agentContext: AgentContext, record: T): Promise; /** @inheritDoc */ delete(agentContext: AgentContext, record: T): Promise; /** @inheritDoc */ deleteById(agentContext: AgentContext, recordClass: BaseRecordConstructor, id: string): Promise; /** @inheritDoc */ getById(agentContext: AgentContext, recordClass: BaseRecordConstructor, id: string): Promise; /** @inheritDoc */ getAll(agentContext: AgentContext, recordClass: BaseRecordConstructor): Promise; /** @inheritDoc */ findByQuery(agentContext: AgentContext, recordClass: BaseRecordConstructor, query: Query): Promise; private search; }