import { USERNAME_ERROR_CODES } from "./error-codes.mjs"; import { UsernamePlugin, UsernamePluginWithoutDisplayUsername } from "./index.mjs"; export type UsernameClientOptions = { /** * Whether the server has the `displayUsername` field enabled. * * This must mirror the `displayUsername` option passed to the server * `username` plugin so the client infers the correct user/session types. * * @default true */ displayUsername?: boolean | undefined; }; export declare const usernameClient: (options?: O) => { id: "username"; version: string; $InferServerPlugin: O["displayUsername"] extends false ? UsernamePluginWithoutDisplayUsername : UsernamePlugin; atomListeners: { matcher: (path: string) => path is "/sign-in/username"; signal: "$sessionSignal"; }[]; $ERROR_CODES: { EMAIL_NOT_VERIFIED: import("@better-auth/core/utils/error-codes").RawError<"EMAIL_NOT_VERIFIED">; UNEXPECTED_ERROR: import("@better-auth/core/utils/error-codes").RawError<"UNEXPECTED_ERROR">; INVALID_USERNAME_OR_PASSWORD: import("@better-auth/core/utils/error-codes").RawError<"INVALID_USERNAME_OR_PASSWORD">; USERNAME_IS_ALREADY_TAKEN: import("@better-auth/core/utils/error-codes").RawError<"USERNAME_IS_ALREADY_TAKEN">; USERNAME_TOO_SHORT: import("@better-auth/core/utils/error-codes").RawError<"USERNAME_TOO_SHORT">; USERNAME_TOO_LONG: import("@better-auth/core/utils/error-codes").RawError<"USERNAME_TOO_LONG">; INVALID_USERNAME: import("@better-auth/core/utils/error-codes").RawError<"INVALID_USERNAME">; INVALID_DISPLAY_USERNAME: import("@better-auth/core/utils/error-codes").RawError<"INVALID_DISPLAY_USERNAME">; USERNAME_IS_IMMUTABLE: import("@better-auth/core/utils/error-codes").RawError<"USERNAME_IS_IMMUTABLE">; }; }; export { USERNAME_ERROR_CODES };