import { GenericEndpointContext } from "@better-auth/core"; import { BetterAuthError } from "@better-auth/core/error"; import * as z from "zod"; //#region src/state.d.ts declare const stateDataSchema: z.ZodObject<{ callbackURL: z.ZodString; codeVerifier: z.ZodString; errorURL: z.ZodOptional; newUserURL: z.ZodOptional; expiresAt: z.ZodNumber; link: z.ZodOptional; }, z.core.$strip>>; requestSignUp: z.ZodOptional; }, z.core.$loose>; type StateData = z.infer; declare function generateGenericState(c: GenericEndpointContext, stateData: StateData, settings?: { cookieName: string; }): Promise<{ state: string; codeVerifier: string; }>; declare function parseGenericState(c: GenericEndpointContext, state: string, settings?: { cookieName: string; }): Promise<{ [x: string]: unknown; callbackURL: string; codeVerifier: string; expiresAt: number; errorURL?: string | undefined; newUserURL?: string | undefined; link?: { email: string; userId: string; } | undefined; requestSignUp?: boolean | undefined; }>; //#endregion export { StateData, generateGenericState, parseGenericState }; //# sourceMappingURL=state.d.mts.map