import { UseTRPCActionResult } from "@trpc/next/app-dir/client"; import { ActionHandlerDef, TRPCActionHandler } from "@trpc/next/app-dir/server"; import { AnyTRPCRouter } from "@trpc/server"; //#region src/client.d.ts /** * Creates a tRPC client for the Next.js app directory. * * @param baseUrl - The base URL for the tRPC server. This is typically the URL of the Next.js app. * @returns A tRPC client that can be used to make requests to the server. */ declare function createTRPCClient(baseUrl: string): import("@trpc/client").TRPCClient; /** * Creates a tRPC action hook for the Next.js app directory. * * @returns A function that can be used to create a tRPC action hook. */ declare function createUseAction(): (handler: TRPCActionHandler, useActionOpts?: any) => UseTRPCActionResult; //#endregion export { createTRPCClient, createUseAction }; //# sourceMappingURL=client.d.cts.map