import type { ConsoleRpcExtendedCtx, EndpointManagementPort, ExtendedRpcResult } from './contracts.js'; export declare function requiredRpcValue(value: unknown, name: string): unknown; export declare function requiredRpcText(value: unknown, name: string): string; export declare function optionalRpcText(value: unknown, name: string): string | undefined; export declare function optionalRpcTextArray(value: unknown, name: string): readonly string[] | undefined; export declare function requiredRpcInteger(value: unknown, name: string, minimum?: number): number; export declare function requiredRpcBoolean(value: unknown, name: string): boolean; export declare function strField(d: Record, key: string): string; export declare function numField(d: Record, fallback: number, key: string): number; export declare function boundedIntegerField(d: Record, fallback: number, minimum: number, maximum: number, key: string): number; export declare function boolField(d: Record, fallback: boolean, key: string): boolean; export declare function optionalNum(d: Record, key: string): number | undefined; /** Parse one canonical numeric-array field into finite positive ids. */ export declare function numArrayField(d: Record, key: string): number[]; export declare function withLiveEndpoint(ctx: ConsoleRpcExtendedCtx, adapter: string, endpointKey: string, run: (management: EndpointManagementPort) => ExtendedRpcResult | Promise): Promise; export declare function errorMessage(error: unknown): string;