import type { AssistantMessageFrame } from "@earendil-works/pi-ai"; import type { AgentToolResult } from "../../types.ts"; import type { DurableStructuralPreparation, JsonValue, LaneConfiguration, LaneState, OperationMeta, OperationResultRecord, OperationState, PendingEntry } from "./types.ts"; declare const storedValueType: unique symbol; export interface StoredAddressBase { readonly namespace: string; readonly key: string; readonly kind: "value" | "list"; } export interface Value extends StoredAddressBase { readonly kind: "value"; readonly [storedValueType]?: (value: T) => T; } export interface ValueList extends StoredAddressBase { readonly kind: "list"; readonly [storedValueType]?: (value: T) => T; } export interface StoredValue { address: Value; value: T; seq: number; } export interface ListElement { seq: number; value: T; } export interface ListCursor { seq: number; } export interface ListReadOptions { cursor?: ListCursor; order?: "asc" | "desc"; limit?: number; } export interface ResolvedListReadOptions { cursor?: ListCursor; order: "asc" | "desc"; limit: number; } export interface ValueSetWrite { kind: "value"; op: "set"; namespace: string; key: string; value: unknown; } export interface ValueDeleteWrite { kind: "value"; op: "delete"; namespace: string; key: string; } export interface ListAppendWrite { kind: "list"; op: "append"; namespace: string; key: string; value: unknown; } export interface ListDeleteWrite { kind: "list"; op: "delete"; namespace: string; key: string; } export type ValueWrite = ValueSetWrite | ValueDeleteWrite; export type ListWrite = ListAppendWrite | ListDeleteWrite; export declare function value(namespace: string, key?: string): Value; export declare function list(namespace: string, key?: string): ValueList; export declare function setValue(address: Value, next: NoInfer): ValueSetWrite; export declare function deleteValue(address: Value): ValueDeleteWrite; export declare function appendList(address: ValueList, element: NoInfer): ListAppendWrite; export declare function deleteList(address: ValueList): ListDeleteWrite; export declare function resolveListReadOptions(options?: ListReadOptions): ResolvedListReadOptions; export declare const branchTip: (branch: string) => Value; export declare const branchTipInventoryPrefix: () => Value; export declare const laneConfig: (lane: string) => Value; export declare const laneState: (lane: string) => Value; export declare const operationResult: (operationId: string) => Value; export declare const operationMeta: (operationId: string) => Value; export declare const operationState: (operationId: string) => Value; export declare const operationToolArgs: (operationId: string, stepId: string, sourceIndex: number) => Value>; export declare const operationToolMemo: (operationId: string, invocationId: string, name: string) => Value; export declare const operationPreparation: (operationId: string, taskId: string) => Value; export declare const operationToolArgsPrefix: (operationId: string, stepId?: string | undefined) => Value>; export declare const operationToolMemoPrefix: (operationId: string, invocationId?: string | undefined) => Value; export declare const operationPreparationPrefix: (operationId: string) => Value; export declare const pendingEntry: (entryId: string) => Value; export declare const pendingToolOutput: (operationId: string, invocationId: string) => Value>; export declare const pendingAssistantFrames: (operationId: string, responseEntryId: string) => ValueList; export declare const pendingToolOutputPrefix: (operationId: string) => Value>; export declare const sessionName: Value; export declare const entryLabel: (entryId: string) => Value; export {}; //# sourceMappingURL=values.d.ts.map