import type { ApiKeyCapability } from "@uptimizr/db"; import type { CollectorStore } from "./store.js"; export interface MemoryStoreOptions { /** The single project id this store serves. */ projectId: string; /** The plaintext API key that resolves to {@link projectId}. */ apiKey: string; /** * Capability set the {@link apiKey} resolves with. Defaults to `["query"]` * (reads only) — the same default as a key minted by the CLI. */ capabilities?: readonly ApiKeyCapability[]; /** Stable id reported for {@link apiKey} (the audit-log subject). */ keyId?: string; } /** * In-memory {@link CollectorStore} for local development and end-to-end tests — * it boots the collector without ClickHouse or Postgres. Events are kept in a * plain array; the replay-relevant reads (session list, ordered timeline, coarse * meta) and the lightweight aggregates (scenes, time-series, event-type counts) * are served from it so the playground's filters and timeline work. The * heavier spatial aggregates (heatmaps, perf, top meshes) are intentionally not * implemented here and return empty results; use the ClickHouse-backed store for * those. Never use this in production. */ export declare function createMemoryStore({ projectId, apiKey, capabilities, keyId, }: MemoryStoreOptions): CollectorStore; //# sourceMappingURL=memoryStore.d.ts.map