/** Capability boundary validation; imported directly by internal consumers. */ import type { JsonObject, JsonValue } from "../types/primitives.js"; import { type CapabilityEndpointSelection, CapabilityError, type FileStat, type GitOperation, type PluginGetProviderResult, type PluginInvokeActionResult, type PluginResponseHandlerFieldEvaluatorHandleResult, type RemotePluginAppBridgeHook, type RemotePluginLifecycleHook, type RemotePluginModuleManifest, type RemotePluginRouteManifest } from "./protocol.js"; export declare function endpointSelection(params: CapabilityEndpointSelection): JsonObject; export declare function requireObject(value: JsonValue | undefined, method: string): JsonObject; export declare function requireString(object: JsonObject, key: string, method: string): string; export declare function requireNonEmptyString(object: JsonObject, key: string, method: string): string; export declare function optionalString(object: JsonObject, key: string, method: string): string | undefined; export declare function optionalJsonObject(object: JsonObject, key: string, method: string): JsonObject | undefined; export declare function optionalNumber(object: JsonObject, key: string, method: string): number | undefined; export declare function requireNumber(object: JsonObject, key: string, method: string): number; export declare function requireObjectArray(object: JsonObject, key: string, method: string): JsonObject[]; export declare function requireFileStatArray(object: JsonObject, key: string, method: string): FileStat[]; export declare function optionalStringRecord(object: JsonObject, key: string, method: string): Record | undefined; export declare function nullableNumber(object: JsonObject, key: string, method: string): number | null; export declare function requireBoolean(object: JsonObject, key: string, method: string): boolean; export declare function optionalBoolean(object: JsonObject, key: string, method: string): boolean | undefined; export declare function requireResponseHandlerFieldEffect(value: JsonValue, method: string): NonNullable; export declare function requireGitOperation(value: JsonValue | undefined, method: string): GitOperation; export declare function requireRemotePluginModuleArray(object: JsonObject, key: string, method: string): RemotePluginModuleManifest[]; export declare function validateRemotePluginServiceMethods(methods: string[] | undefined, method: string): void; export declare function validateRemotePluginCallTarget(value: string, key: string, method: string): void; export declare function isRemotePluginAppBridgeHook(value: string): value is RemotePluginAppBridgeHook; export declare function isRemotePluginLifecycleHook(value: string): value is RemotePluginLifecycleHook; export declare function validateRemotePluginRouteMethod(value: string, key: string, method: string, allowStatic: boolean): asserts value is RemotePluginRouteManifest["method"]; export declare function validateRemotePluginPath(value: string, key: string, method: string): void; export declare function validateRemotePluginAssetPath(value: string, key: string, method: string): void; export declare function validateHeaderSafeString(value: string, key: string, method: string): void; export declare function validateHeaderRecord(headers: Record, key: string, method: string): void; export declare function validateRouteQueryRecord(query: Record, key: string, method: string): void; export declare function validateHttpStatusCode(value: number, key: string, method: string): void; export declare function validateBase64String(value: string, key: string, method: string): void; export declare function requirePluginActionResult(value: JsonValue | undefined, method: string): PluginInvokeActionResult; export declare function requirePluginProviderResult(value: JsonValue | undefined, method: string): PluginGetProviderResult; export declare function decodeError(method: string, message: string): CapabilityError;