import type { IDIDRepository } from "./interfaces.js"; /** * Simple in-memory implementation of IDIDRepository. * Suitable for testing and development, but data is lost when the process exits. */ export declare class InMemoryDIDRepository implements IDIDRepository { private storage; store(shortFormDid: string, longFormDid: string): Promise; retrieve(shortFormDid: string): Promise; exists(shortFormDid: string): Promise; /** * Clear all stored DIDs (useful for testing) */ clear(): void; /** * Get the number of stored DIDs */ size(): number; } /** * Helper function to extract the short form DID from a long form variant 4 DID * @param longFormDid The long form DID (did:peer:4zHash:zDocument) * @returns The short form DID (did:peer:4zHash) */ export declare function extractShortFormDid(longFormDid: string): string; /** * Convenience function to store a long form DID in a repository using its short form as the key * @param longFormDid The long form DID to store * @param repository The repository to store it in */ export declare function storeLongFormDid(longFormDid: string, repository: IDIDRepository): Promise;