import { z } from 'zod/v4'; /** * THIS FILE IS GENERATED - DO NOT MODIFY DIRECTLY * Generated by @saka-labsonrpc/jsonrpc-generator * * @generated */ /** Type alias for a method with type parameters */ type Method = { readonly methodName: string; readonly zodRequest: z.ZodType; readonly zodResponse: z.ZodType; readonly zodError: z.ZodType; readonly defaultRequest?: DefaultTRequest; }; /** Function to create a method definition with type parameters */ declare function defineMethod(methodName: string, zodRequest: z.ZodType, zodResponse: z.ZodType, zodError: z.ZodType, defaultRequest?: DefaultTRequest): Method; /** Type helper to extract the request type from a method */ type RequestType> = T extends Method ? R : never; /** Type helper to extract the response type from a method */ type ResponseType> = T extends Method ? R : never; /** Type helper to extract the error type from a method */ type ErrorType> = T extends Method ? E : never; /** Type helper to extract the default request type from a method */ type DefaultRequestType> = T extends Method ? D : never; /** Utility type to omit properties from a type in a distributive manner */ type DistributiveOmit = T extends unknown ? Pick> : never; export { type DefaultRequestType, type DistributiveOmit, type ErrorType, type Method, type RequestType, type ResponseType, defineMethod };