import type { Operator } from "./operator"; import type { Subject } from "../handler/subject"; import type { MapCodec } from "../state"; import { MapState } from "../state/map-state"; /** * A specification for a map state. * * @typeParam K - The type of the keys in the map. * @typeParam V - The type of the values in the map. */ export declare class MapSpec { private codec; private id; /** * Create a new MapSpec. * * @param op - The operator that will read and write the state. * @param id - An ID for the state. * @param codec - The codec to use for serializing and deserializing the state. * @typeParam K - The type of the keys in the map. * @typeParam V - The type of the values in the map. */ constructor(op: Operator, id: string, codec: MapCodec); /** * Retrieve the state for the given subject. */ stateFor(subject: Subject): MapState; }