import type { AdapterLibrary, EventStoreInstance, EventCacheInstance, Event } from './types.js'; export default function (eventStoreLib: AdapterLibrary, eventCacheLib: AdapterLibrary): { adapters: { store: Record>; cache: Record>; }; fetch: (type: string, id: unknown, lastEventId: unknown, noError?: boolean | undefined) => Promise; fetchByIndex: (type: string, indexName: string, indexValue: unknown, lastEventId: unknown, noError?: boolean | undefined) => Promise; fetchStream: (type: string, id: unknown, options: Record) => Promise; fetchPack: (type: string, id: unknown, vector: string) => Promise; store: (type: string, id: unknown, events: Event[]) => Promise; storePack: (type: string, id: unknown, vector: string, lastEventId: unknown, events: Event[]) => Promise; };