/** * Import a single key from Redis into RespLite storages (shared by bulk and delta apply). * SPEC_F §F.7.1, F.8.2. */ import type { createKeysStorage } from '../storage/sqlite/keys.ts'; import type { createStringsStorage } from '../storage/sqlite/strings.ts'; import type { createHashesStorage } from '../storage/sqlite/hashes.ts'; import type { createSetsStorage } from '../storage/sqlite/sets.ts'; import type { createListsStorage } from '../storage/sqlite/lists.ts'; import type { createZsetsStorage } from '../storage/sqlite/zsets.ts'; import type { MigrationRedisClient } from './redis-client.ts'; /** Destination storages a key is written to. */ export interface ImportStorages { keys: ReturnType; strings: ReturnType; hashes: ReturnType; sets: ReturnType; lists: ReturnType; zsets: ReturnType; } export interface ImportKeyOptions { now?: number; zsetScanCount?: number; } export interface ImportKeyResult { ok: boolean; skipped?: boolean; error?: boolean; bytes?: number; } declare const SUPPORTED_TYPES: Set; /** * Fetch one key from Redis and write to storages. Idempotent (upsert). */ export declare function importKeyFromRedis(redisClient: MigrationRedisClient, keyName: string, storages: ImportStorages, options?: ImportKeyOptions): Promise; export { SUPPORTED_TYPES };