import type { IVaultRepository, UserProfileLookupKey } from 'gdc-sdk-core-ts'; import type { UserProfileIndexRecord } from './UserProfileIndexStore.types.js'; export type { UserProfileIndexRecord } from './UserProfileIndexStore.types.js'; /** * Node/server persistence adapter for hashed local user-profile indexes. * * Responsibilities: * - store ordered local profile indexes * - list stored index documents * - resolve one index by hashed lookup key before PIN unlock * * Non-responsibilities: * - hashing raw email/phone input * - unlocking profiles with PIN * - storing seeds or decrypted private key material */ export declare class UserProfileIndexStore { private readonly vault; constructor(vault: IVaultRepository); /** * Initializes the underlying storage adapter. */ initialize(): Promise; /** * Creates or replaces one stored user-profile index record. */ upsert(record: UserProfileIndexRecord): Promise; /** * Returns every stored user-profile index record. */ list(): Promise; /** * Returns one stored index by storage id. */ get(id: string): Promise; /** * Resolves the first stored index that contains the given hashed lookup key. * * This intentionally compares hashed lookup tokens only. Raw phone/email * values are outside this store contract. */ findByLookup(lookup: UserProfileLookupKey): Promise; /** * Deletes one stored index by storage id. */ remove(id: string): Promise; }