import { Type } from "typebox"; export declare const SessionCompactionCheckpointReasonSchema: Type.TUnion<[Type.TLiteral<"manual">, Type.TLiteral<"auto-threshold">, Type.TLiteral<"overflow-retry">, Type.TLiteral<"timeout-retry">]>; export declare const SessionCompactionTranscriptReferenceSchema: Type.TObject<{ sessionId: Type.TString; sessionFile: Type.TOptional; leafId: Type.TOptional; entryId: Type.TOptional; }>; export declare const SessionCompactionCheckpointSchema: Type.TObject<{ checkpointId: Type.TString; sessionKey: Type.TString; sessionId: Type.TString; createdAt: Type.TInteger; reason: Type.TUnion<[Type.TLiteral<"manual">, Type.TLiteral<"auto-threshold">, Type.TLiteral<"overflow-retry">, Type.TLiteral<"timeout-retry">]>; tokensBefore: Type.TOptional; tokensAfter: Type.TOptional; summary: Type.TOptional; firstKeptEntryId: Type.TOptional; preCompaction: Type.TObject<{ sessionId: Type.TString; sessionFile: Type.TOptional; leafId: Type.TOptional; entryId: Type.TOptional; }>; postCompaction: Type.TObject<{ sessionId: Type.TString; sessionFile: Type.TOptional; leafId: Type.TOptional; entryId: Type.TOptional; }>; }>; export declare const SessionsListParamsSchema: Type.TObject<{ /** * Maximum rows to return. Omitted Gateway RPC calls use a bounded default * to keep large session stores from monopolizing the event loop. */ limit: Type.TOptional; activeMinutes: Type.TOptional; includeGlobal: Type.TOptional; includeUnknown: Type.TOptional; /** * Read first 8KB of each session transcript to derive title from first user message. * Performs a file read per session - use `limit` to bound result set on large stores. */ includeDerivedTitles: Type.TOptional; /** * Read last 16KB of each session transcript to extract most recent message preview. * Performs a file read per session - use `limit` to bound result set on large stores. */ includeLastMessage: Type.TOptional; label: Type.TOptional; spawnedBy: Type.TOptional; agentId: Type.TOptional; search: Type.TOptional; }>; export declare const SessionsCleanupParamsSchema: Type.TObject<{ agent: Type.TOptional; allAgents: Type.TOptional; enforce: Type.TOptional; activeKey: Type.TOptional; fixMissing: Type.TOptional; }>; export declare const SessionsPreviewParamsSchema: Type.TObject<{ keys: Type.TArray; limit: Type.TOptional; maxChars: Type.TOptional; }>; export declare const SessionsDescribeParamsSchema: Type.TObject<{ key: Type.TString; includeDerivedTitles: Type.TOptional; includeLastMessage: Type.TOptional; }>; export declare const SessionsResolveParamsSchema: Type.TObject<{ key: Type.TOptional; sessionId: Type.TOptional; label: Type.TOptional; agentId: Type.TOptional; spawnedBy: Type.TOptional; includeGlobal: Type.TOptional; includeUnknown: Type.TOptional; }>; export declare const SessionsCreateParamsSchema: Type.TObject<{ key: Type.TOptional; agentId: Type.TOptional; label: Type.TOptional; model: Type.TOptional; parentSessionKey: Type.TOptional; emitCommandHooks: Type.TOptional; task: Type.TOptional; message: Type.TOptional; }>; export declare const SessionsSendParamsSchema: Type.TObject<{ key: Type.TString; message: Type.TString; thinking: Type.TOptional; attachments: Type.TOptional>; timeoutMs: Type.TOptional; idempotencyKey: Type.TOptional; }>; export declare const SessionsMessagesSubscribeParamsSchema: Type.TObject<{ key: Type.TString; }>; export declare const SessionsMessagesUnsubscribeParamsSchema: Type.TObject<{ key: Type.TString; }>; export declare const SessionsAbortParamsSchema: Type.TObject<{ key: Type.TOptional; runId: Type.TOptional; }>; export declare const SessionsPatchParamsSchema: Type.TObject<{ key: Type.TString; label: Type.TOptional>; thinkingLevel: Type.TOptional>; fastMode: Type.TOptional>; verboseLevel: Type.TOptional>; traceLevel: Type.TOptional>; reasoningLevel: Type.TOptional>; responseUsage: Type.TOptional, Type.TLiteral<"tokens">, Type.TLiteral<"full">, Type.TLiteral<"on">, Type.TNull]>>; elevatedLevel: Type.TOptional>; execHost: Type.TOptional>; execSecurity: Type.TOptional>; execAsk: Type.TOptional>; execNode: Type.TOptional>; model: Type.TOptional>; spawnedBy: Type.TOptional>; spawnedWorkspaceDir: Type.TOptional>; spawnDepth: Type.TOptional>; subagentRole: Type.TOptional, Type.TLiteral<"leaf">, Type.TNull]>>; subagentControlScope: Type.TOptional, Type.TLiteral<"none">, Type.TNull]>>; sendPolicy: Type.TOptional, Type.TLiteral<"deny">, Type.TNull]>>; groupActivation: Type.TOptional, Type.TLiteral<"always">, Type.TNull]>>; }>; export declare const SessionsPluginPatchParamsSchema: Type.TObject<{ key: Type.TString; pluginId: Type.TString; namespace: Type.TString; value: Type.TOptional; unset: Type.TOptional; }>; export declare const SessionsPluginPatchResultSchema: Type.TObject<{ ok: Type.TLiteral; key: Type.TString; value: Type.TOptional; }>; export declare const SessionsResetParamsSchema: Type.TObject<{ key: Type.TString; reason: Type.TOptional, Type.TLiteral<"reset">]>>; }>; export declare const SessionsDeleteParamsSchema: Type.TObject<{ key: Type.TString; deleteTranscript: Type.TOptional; emitLifecycleHooks: Type.TOptional; }>; export declare const SessionsCompactParamsSchema: Type.TObject<{ key: Type.TString; maxLines: Type.TOptional; }>; export declare const SessionsCompactionListParamsSchema: Type.TObject<{ key: Type.TString; }>; export declare const SessionsCompactionGetParamsSchema: Type.TObject<{ key: Type.TString; checkpointId: Type.TString; }>; export declare const SessionsCompactionBranchParamsSchema: Type.TObject<{ key: Type.TString; checkpointId: Type.TString; }>; export declare const SessionsCompactionRestoreParamsSchema: Type.TObject<{ key: Type.TString; checkpointId: Type.TString; }>; export declare const SessionsCompactionListResultSchema: Type.TObject<{ ok: Type.TLiteral; key: Type.TString; checkpoints: Type.TArray, Type.TLiteral<"auto-threshold">, Type.TLiteral<"overflow-retry">, Type.TLiteral<"timeout-retry">]>; tokensBefore: Type.TOptional; tokensAfter: Type.TOptional; summary: Type.TOptional; firstKeptEntryId: Type.TOptional; preCompaction: Type.TObject<{ sessionId: Type.TString; sessionFile: Type.TOptional; leafId: Type.TOptional; entryId: Type.TOptional; }>; postCompaction: Type.TObject<{ sessionId: Type.TString; sessionFile: Type.TOptional; leafId: Type.TOptional; entryId: Type.TOptional; }>; }>>; }>; export declare const SessionsCompactionGetResultSchema: Type.TObject<{ ok: Type.TLiteral; key: Type.TString; checkpoint: Type.TObject<{ checkpointId: Type.TString; sessionKey: Type.TString; sessionId: Type.TString; createdAt: Type.TInteger; reason: Type.TUnion<[Type.TLiteral<"manual">, Type.TLiteral<"auto-threshold">, Type.TLiteral<"overflow-retry">, Type.TLiteral<"timeout-retry">]>; tokensBefore: Type.TOptional; tokensAfter: Type.TOptional; summary: Type.TOptional; firstKeptEntryId: Type.TOptional; preCompaction: Type.TObject<{ sessionId: Type.TString; sessionFile: Type.TOptional; leafId: Type.TOptional; entryId: Type.TOptional; }>; postCompaction: Type.TObject<{ sessionId: Type.TString; sessionFile: Type.TOptional; leafId: Type.TOptional; entryId: Type.TOptional; }>; }>; }>; export declare const SessionsCompactionBranchResultSchema: Type.TObject<{ ok: Type.TLiteral; sourceKey: Type.TString; key: Type.TString; sessionId: Type.TString; checkpoint: Type.TObject<{ checkpointId: Type.TString; sessionKey: Type.TString; sessionId: Type.TString; createdAt: Type.TInteger; reason: Type.TUnion<[Type.TLiteral<"manual">, Type.TLiteral<"auto-threshold">, Type.TLiteral<"overflow-retry">, Type.TLiteral<"timeout-retry">]>; tokensBefore: Type.TOptional; tokensAfter: Type.TOptional; summary: Type.TOptional; firstKeptEntryId: Type.TOptional; preCompaction: Type.TObject<{ sessionId: Type.TString; sessionFile: Type.TOptional; leafId: Type.TOptional; entryId: Type.TOptional; }>; postCompaction: Type.TObject<{ sessionId: Type.TString; sessionFile: Type.TOptional; leafId: Type.TOptional; entryId: Type.TOptional; }>; }>; entry: Type.TObject<{ sessionId: Type.TString; updatedAt: Type.TInteger; }>; }>; export declare const SessionsCompactionRestoreResultSchema: Type.TObject<{ ok: Type.TLiteral; key: Type.TString; sessionId: Type.TString; checkpoint: Type.TObject<{ checkpointId: Type.TString; sessionKey: Type.TString; sessionId: Type.TString; createdAt: Type.TInteger; reason: Type.TUnion<[Type.TLiteral<"manual">, Type.TLiteral<"auto-threshold">, Type.TLiteral<"overflow-retry">, Type.TLiteral<"timeout-retry">]>; tokensBefore: Type.TOptional; tokensAfter: Type.TOptional; summary: Type.TOptional; firstKeptEntryId: Type.TOptional; preCompaction: Type.TObject<{ sessionId: Type.TString; sessionFile: Type.TOptional; leafId: Type.TOptional; entryId: Type.TOptional; }>; postCompaction: Type.TObject<{ sessionId: Type.TString; sessionFile: Type.TOptional; leafId: Type.TOptional; entryId: Type.TOptional; }>; }>; entry: Type.TObject<{ sessionId: Type.TString; updatedAt: Type.TInteger; }>; }>; export declare const SessionsUsageParamsSchema: Type.TObject<{ /** Specific session key to analyze; if omitted returns all sessions. */ key: Type.TOptional; /** Start date for range filter (YYYY-MM-DD). */ startDate: Type.TOptional; /** End date for range filter (YYYY-MM-DD). */ endDate: Type.TOptional; /** How start/end dates should be interpreted. Defaults to UTC when omitted. */ mode: Type.TOptional, Type.TLiteral<"gateway">, Type.TLiteral<"specific">]>>; /** UTC offset to use when mode is `specific` (for example, UTC-4 or UTC+5:30). */ utcOffset: Type.TOptional; /** Maximum sessions to return (default 50). */ limit: Type.TOptional; /** Include context weight breakdown (systemPromptReport). */ includeContextWeight: Type.TOptional; }>;