import type { ColumnType } from 'kysely'; import type * as Db from '../Db.js'; import type * as db_Schema from '../Schema.js'; /** A Better Auth `Date` written as canonical ISO text. */ type Timestamp = ColumnType; /** Columns of Better Auth's pinned `account` model. */ export type Table = Omit & { accessTokenExpiresAt: Timestamp | null; createdAt: Timestamp; refreshTokenExpiresAt: Timestamp | null; updatedAt: Timestamp; }; /** * Reads the user linked to a SIWE wallet. * * @param db - The database. * @param address - The wallet address. * @returns The linked user id, or `undefined` when absent. */ export declare function getWalletUserId(db: Db.Db, address: string): Promise; /** * Reads the wallet linked to a user. * * @param db - The database. * @param userId - The user id. * @returns The linked wallet address, or `undefined` when absent. */ export declare function getWalletAddress(db: Db.Db, userId: string): Promise; /** * Sets a SIWE wallet's stable user and returns the stored user id. * * @param db - The database. * @param options - Wallet link fields. * @returns The stored user id. */ export declare function setWalletUser(db: Db.Db, options: setWalletUser.Options): Promise; export declare namespace setWalletUser { /** Fields accepted when setting a SIWE wallet user. */ type Options = { /** Wallet address to link. */ address: string; /** Stable owning user id. */ userId: string; }; } export {}; //# sourceMappingURL=authAccounts.d.ts.map