UNPKG

kitcn

Version:

kitcn - React Query integration and CLI tools for Convex

17 lines (16 loc) 1.04 kB
import { t as GetTokenOptions } from "../../token-B9Bjcqug.js"; import { FunctionReference, FunctionReturnType, OptionalRestArgs } from "convex/server"; //#region src/auth-start/index.d.ts type ConvexBetterAuthReactStartOptions = Omit<GetTokenOptions, 'forceRefresh'> & { convexSiteUrl: string; convexUrl: string; }; declare const convexBetterAuthReactStart: (opts: ConvexBetterAuthReactStartOptions) => { getToken: () => Promise<string | undefined>; handler: (request: Request) => Promise<Response>; fetchAuthQuery: <Query extends FunctionReference<"query">>(query: Query, ...args: OptionalRestArgs<Query>) => Promise<FunctionReturnType<Query>>; fetchAuthMutation: <Mutation extends FunctionReference<"mutation">>(mutation: Mutation, ...args: OptionalRestArgs<Mutation>) => Promise<FunctionReturnType<Mutation>>; fetchAuthAction: <Action extends FunctionReference<"action">>(action: Action, ...args: OptionalRestArgs<Action>) => Promise<FunctionReturnType<Action>>; }; //#endregion export { convexBetterAuthReactStart };