import { BlockHash, StorageData, StorageKey } from '@dedot/codecs'; import type { Callback, Unsub } from '@dedot/types'; import { LegacyClient } from '../client/LegacyClient.js'; import { BaseStorageQuery } from './BaseStorageQuery.js'; /** * @name LegacyStorageQuery * @description * Implementation of BaseStorageQuery for the legacy JSON-RPC API (v1). * This service handles storage queries using the state_queryStorageAt and * state_subscribeStorage RPC methods. * * It provides: * - One-time queries using state_queryStorageAt * - Subscriptions using state_subscribeStorage * - Efficient change tracking for subscriptions */ export declare class LegacyStorageQuery extends BaseStorageQuery { protected client: LegacyClient; constructor(client: LegacyClient); /** * Query multiple storage items in a single call using state_queryStorageAt * * @param keys - Array of storage keys to query * @param at - Optional block hash to query at (defaults to current/best block) * @returns Promise resolving to a record mapping storage keys to their values */ query(keys: StorageKey[], at?: BlockHash): Promise>; /** * Subscribe to multiple storage items using state_subscribeStorage * * @param keys - Array of storage keys to subscribe to * @param callback - Function to call when storage values change * @returns Promise resolving to an unsubscribe function */ subscribe(keys: StorageKey[], callback: Callback>): Promise; }