import * as pb from '../proto/handlerpb/handler_pb'; import { type Timestamp } from "@bufbuild/protobuf/wkt"; import { Temporal } from "../temporal"; type KeyState = Map; interface MutatingState { mutations(): pb.StateMutation[]; } /** * Implementation of the Subject interface for handling state and sinks */ export declare class SubjectContext { readonly key: Uint8Array; readonly watermark: Temporal.Instant; private usedStates; private sinkRequests; private timers; private stateCache; private keyState; constructor(key: Uint8Array, watermark: Temporal.Instant, keyState: KeyState); registerStateUse(id: string, state: MutatingState): void; /** * Puts any state type into a cache */ putState(name: string, state: unknown): void; /** * Gets an unknown state type from the cache */ getState(name: string): unknown; getStateEntries(namespace: string): pb.StateEntry[]; emit(sinkId: string, value: Uint8Array): void; setTimer(timestamp: Temporal.Instant): void; getStateMutationNamespaces(): pb.StateMutationNamespace[]; getSinkRequests(): pb.SinkRequest[]; addSinkRequest(id: string, value: Uint8Array): void; getTimers(): Timestamp[]; getKeyResults(): pb.KeyResult[]; } export {};