export declare const MAX_RPC_MESSAGE_CHARACTERS = 1000000;
/**
 * Bounds on `open_session.context`. The host stores the blob per session and republishes
 * it on `list_sessions { include_workers: true }`, so it is bounded at the boundary: an
 * unbounded label map would be per-session memory and per-listing bytes a client controls.
 */
export declare const SESSION_CONTEXT_LIMITS: {
    readonly keys: 32;
    readonly valueBytes: number;
    readonly totalBytes: number;
};
export declare function rpcCommandPayloadError(command: unknown): string | undefined;
/**
 * Detail for an `open_session.context` the host refuses, or undefined when the value is
 * absent or a valid context. The caller answers with `invalid_session_context: <detail>`;
 * the detail names the cap that was broken so a client can fix the payload without guessing.
 */
export declare function sessionContextError(context: unknown): string | undefined;
/**
 * Detail for an `open_session.kind` the host refuses, or undefined when the value is absent
 * or a known kind. An unknown kind is never treated as `interactive`: a typo would publish
 * machine-driven work to every client that lists sessions.
 */
export declare function sessionKindError(kind: unknown): string | undefined;
/**
 * Detail for an `open_session.auto_title` the host refuses, or undefined when the
 * value is absent or a boolean. Absent keeps the host-wide default; a non-boolean
 * cannot be coerced without collapsing `true` / `false` / omitted into one state.
 */
export declare function sessionAutoTitleError(value: unknown): string | undefined;
/**
 * Detail for an `open_session.promptSurface` the host refuses, or undefined when the value is
 * absent or a known surface. An unknown value is never read as `terminal`: a client that asked
 * for the app or chat prompt must not silently get the routing line.
 */
export declare function sessionPromptSurfaceError(value: unknown): string | undefined;
/**
 * Detail for an `open_session.browserEngine` the host refuses, or undefined when the value is absent
 * or a known engine. An unknown value is never read as `none`: a client that asked for the user's
 * own browser must not silently run without one.
 */
export declare function sessionBrowserEngineError(value: unknown): string | undefined;
/**
 * Detail for an `open_session.retryFallback` the host refuses, or undefined when it is absent or well
 * formed: `{ modelFallback: boolean, fallbackChains: Record<string, string[]> }`, at most 32 chains of at
 * most 32 non-empty selectors. A malformed profile is refused rather than ignored, so a caller that asked
 * for a chain never runs without one unknowingly.
 */
export declare function sessionRetryFallbackError(value: unknown): string | undefined;
export declare function rpcCommandShapeError(command: unknown): string | undefined;
export declare function rpcMessageLengthError(command: unknown): string | undefined;
//# sourceMappingURL=rpc-input-validation.d.ts.map