import * as z from "zod"; import { InferOptionSchema } from "better-auth"; //#region src/plugins/better-auth/schema.d.ts declare const schema: { walletAddress: { fields: { userId: { type: "string"; references: { model: string; field: string; }; required: true; index: true; }; address: { type: "string"; required: true; }; chainId: { type: "number"; required: true; bigint: true; }; isPrimary: { type: "boolean"; defaultValue: false; }; createdAt: { type: "date"; required: true; }; }; }; }; type WalletAddressSchema = typeof schema; //#endregion //#region src/plugins/better-auth/types.d.ts interface SIWSVerifyMessageArgs { message: string; signature: string; address: string; chainId: number; } interface ResolveProfileArgs { walletAddress: string; } interface ResolveProfileResult { name: string; avatar: string; } //#endregion //#region src/plugins/better-auth/plugin.d.ts declare module "@better-auth/core" { interface BetterAuthPluginRegistry { siws: { creator: typeof siws; }; } } interface SIWSPluginOptions { domain: string; emailDomainName?: string | undefined; anonymous?: boolean | undefined; getNonce?: () => Promise; verifyMessage?: ((args: SIWSVerifyMessageArgs) => Promise) | undefined; resolveProfile?: ((args: ResolveProfileArgs) => Promise) | undefined; schema?: InferOptionSchema | undefined; } declare const siws: (options: SIWSPluginOptions) => { id: "siws"; version: string; schema: WalletAddressSchema; endpoints: { nonce: import("better-auth").StrictEndpoint<"/siws/nonce", { method: "POST"; body: z.ZodOptional>; }, { nonce: string; }>; verify: import("better-auth").StrictEndpoint<"/siws/verify", { method: "POST"; body: z.ZodObject<{ message: z.ZodString; signature: z.ZodString; email: z.ZodOptional; }, z.core.$strict>; requireRequest: true; }, { token: string; success: boolean; user: { id: string; walletAddress: string; chainId: number; }; }>; }; options: SIWSPluginOptions; }; //#endregion //#region src/plugins/better-auth/client.d.ts declare const siwsClient: () => { id: "siws"; version: string; $InferServerPlugin: ReturnType; pathMethods: { "/siws/nonce": "POST"; "/siws/verify": "POST"; }; }; //#endregion export { SIWSPluginOptions as n, siws as r, siwsClient as t }; //# sourceMappingURL=client-BywC0Cfs.d.ts.map