import { TRPCEndpoint } from '.'; import { tsutil } from './tsutil'; export declare type TRPCPayload = { path: string[]; args: unknown[]; context: Ctx; }; export declare class TRPCRouter; } = {}, Endpoints extends { [k: string]: TRPCEndpoint; } = {}> { readonly _def: { children: Children; endpoints: Endpoints; }; readonly _sdk: tsutil.format<{ [k in keyof Children]: Children[k]['_sdk']; } & { [k in keyof Endpoints]: Endpoints[k]['_sdk']; }>; constructor(def: { children: Children; endpoints: Endpoints; }); endpoint:

>(path: P, endpt: E) => TRPCRouter>; compose:

(path: P, child: R) => TRPCRouter, Endpoints>; handle: (payload: TRPCPayload) => any; static create: () => TRPCRouter; toExpress: () => (request: any, response: any, next: any) => Promise; toServerSDK: () => tsutil.format<{ [k in keyof Children]: ReturnType; } & { [k in keyof Endpoints]: ReturnType; }>; }