import type * as z from "zod/mini"; import { type ErrorCode } from "./consts.js"; import type { CursorSchema } from "./schemas/cursor.js"; import type { JSONRPCErrorSchema } from "./schemas/error.js"; import type { ErrorIdSchema, IdSchema } from "./schemas/id.js"; import type { JSONRPCMessageSchema } from "./schemas/message.js"; import type { JSONRPCNotificationSchema, NotificationSchema } from "./schemas/notifications.js"; import type { BaseRequestParamsSchema, JSONRPCRequestSchema, ProgressTokenSchema, RequestMetaSchema, RequestSchema } from "./schemas/request.js"; import type { JSONRPCResponseSchema, ResultSchema } from "./schemas/response.js"; export type ProgressToken = z.infer; export type Cursor = z.infer; export type Request = z.infer; export type BaseRequestParams = z.infer; export type RequestMeta = z.infer; export type Notification = z.infer; export type Result = z.infer; export type JSONRPCId = z.infer; export type JSONRPCErrorId = z.infer; export type JSONRPCRequest = z.infer; export type JSONRPCNotification = z.infer; export type JSONRPCResponse = z.infer; export type JSONRPCError = z.infer; export type JSONRPCMessage = z.infer; export declare function newJSONRPCRequest({ id, method, params, }: { id: JSONRPCId; method: string; params?: BaseRequestParams; }): JSONRPCRequest; export declare function newJSONRPCReponse({ id, result, }: { id: JSONRPCId; result: Result; }): JSONRPCResponse; export declare function newJSONRPCError({ id, code, message, data, }: { id: JSONRPCErrorId; code: ErrorCode; message: string; data?: unknown; }): JSONRPCError;