/** Host-neutral history operations: one bounded payload for text and structured results. */ import { Type, type Static } from "typebox"; import { type Operation } from "./result.js"; import { type HistoryPage } from "../history/query.js"; import { type HistoryProjection } from "../history/history.js"; declare const HistoryWindowsDataSchema: Type.TObject<{ session_id: Type.TString; windows: Type.TArray; first_seq: Type.TUnion<[Type.TInteger, Type.TNull]>; last_seq: Type.TUnion<[Type.TInteger, Type.TNull]>; item_count: Type.TInteger; }>>; more: Type.TInteger; }>; type HistoryWindowsData = Static; /** One read: identity, typed tool metadata, and a window of the document. Never a second copy of the output text. */ declare const HistoryReadDataSchema: Type.TObject<{ seq: Type.TInteger; window_id: Type.TString; role: Type.TUnion<[Type.TLiteral<"user">, Type.TLiteral<"assistant">, Type.TLiteral<"tool">, Type.TLiteral<"context">]>; created_at: Type.TUnion<[Type.TString, Type.TNull]>; execution: Type.TOptional, Type.TLiteral<"error">, Type.TLiteral<"unfinished">]>; arguments: Type.TOptional>; argumentsBytes: Type.TOptional; outputTruncated: Type.TOptional; fullOutputPath: Type.TOptional; nestedCalls: Type.TOptional>; argumentsBytes: Type.TOptional; status: Type.TUnion<[Type.TLiteral<"ok">, Type.TLiteral<"error">, Type.TLiteral<"unfinished">]>; durationMs: Type.TOptional; error: Type.TOptional; }>>; complete: Type.TBoolean; trimmed: Type.TOptional; omittedCalls: Type.TOptional; }>>; }>>; window: Type.TObject<{ text: Type.TString; offset_chars: Type.TInteger; total_chars: Type.TInteger; next_offset_chars: Type.TUnion<[Type.TInteger, Type.TNull]>; limited_by: Type.TUnion<[Type.TLiteral<"limit">, Type.TLiteral<"bytes">, Type.TNull]>; }>; }>; type HistoryReadData = Static; export declare const historyWindowsParameters: Type.TObject<{}>; export declare const historyWindows: Operation; export declare const historyListParameters: Type.TObject<{ limit: Type.TOptional; roles: Type.TOptional, Type.TLiteral<"assistant">, Type.TLiteral<"tool">, Type.TLiteral<"context">]>>>; before: Type.TOptional; after: Type.TOptional; window_id: Type.TOptional; max_chars_per_item: Type.TOptional; }>; export declare const historyList: Operation; export declare const historyReadParameters: Type.TObject<{ seq: Type.TInteger; offset_chars: Type.TOptional; limit_chars: Type.TOptional; }>; export declare const historyRead: Operation; export declare const historySearchParameters: Type.TObject<{ query: Type.TUnion<[Type.TString, Type.TArray]>; limit: Type.TOptional; roles: Type.TOptional, Type.TLiteral<"assistant">, Type.TLiteral<"tool">, Type.TLiteral<"context">]>>>; before: Type.TOptional; after: Type.TOptional; window_id: Type.TOptional; max_chars_per_item: Type.TOptional; }>; export declare const historySearch: Operation; export {};