import { Message, Credential } from 'daf-core'; export declare class DataStore { findCredential(id: string): Promise; findCredentials({ iss, sub }: { iss?: string; sub?: string; }): Promise<{ rowId: string; hash: string; iss: { did: string; }; sub: { did: string; }; jwt: string; nbf: number; exp: number; }[]>; credentialsForMessageId(id: string): Promise<{ rowId: string; hash: string; iss: { did: string; }; sub: { did: string; }; jwt: string; nbf: number; exp: number; }[]>; credentialsFieldsForClaimHash(hash: string): Promise<{ rowId: string; hash: string; parentHash: string; iss: { did: string; }; sub: { did: string; }; type: string; value: string; isObj: boolean; }[]>; findCredentialsByFields({ iss, sub, claim_type, }: { iss?: string[]; sub?: string[]; claim_type: string; }): Promise<{ rowId: string; hash: string; iss: { did: string; }; sub: { did: string; }; jwt: string; nbf: number; exp: number; }[]>; credentialToLegacyFormat(credential: Credential): { rowId: string; hash: string; iss: { did: string; }; sub: { did: string; }; jwt: string; nbf: number; exp: number; }; findMessages({ sender, receiver, threadId, limit, }: { sender?: string; receiver?: string; threadId?: string; limit?: number; }): Promise<{ rowId: string; id: string; sender: { did: string; }; receiver: { did: string; }; type: string; threadId: string; data: string; raw: string; timestamp: number; }[]>; findMessage(id: string): Promise<{ rowId: string; id: string; sender: { did: string; }; receiver: { did: string; }; type: string; threadId: string; data: string; raw: string; timestamp: number; }>; allIdentities(): Promise<{ did: string; }[]>; findIdentityByDid(did: string): Promise<{ did: string; }>; popularClaimForDid(did: string, claimType: string): Promise; latestMessageTimestamps(): Promise; shortId(did: string): Promise; saveMessage(message: Message): Promise<{ hash: string; iss: { did: string; }; }>; findMessagesByVC(hash: string): Promise<{ rowId: string; id: string; sender: { did: string; }; receiver: { did: string; }; type: string; threadId: string; data: string; raw: string; timestamp: number; }[]>; metaData(id: string): Promise; deleteMessage(id: string): Promise; private messageToLegacyFormat; } //# sourceMappingURL=data-store.d.ts.map