import { SmrtObject, SmrtObjectOptions } from '@happyvertical/smrt-core'; /** * Default magic link token expiry: 10 minutes in seconds */ export declare const DEFAULT_TOKEN_EXPIRY_SECONDS: number; /** * Constructor options for {@link UsersMagicLinkToken}. */ export interface MagicLinkTokenOptions extends SmrtObjectOptions { nonce?: string; email?: string; used?: boolean; /** Accepts a Date or any value the Date constructor can coerce. */ expiresAt?: Date | string | number; } export declare class UsersMagicLinkToken extends SmrtObject { /** Unique nonce embedded in the signed JWT */ nonce: string; /** Email address this token was generated for */ email: string; /** Whether this token has been used */ used: boolean; /** * When this token expires. * * Indexed: `deleteExpired()` — and the retention sweep that now schedules * it (#2375) — scans this column on every pass. */ expiresAt: Date; constructor(options?: MagicLinkTokenOptions); /** Check if the token has expired */ isExpired(): boolean; /** Check if the token is still valid (unused and not expired) */ isValid(): boolean; } export { UsersMagicLinkToken as MagicLinkToken }; //# sourceMappingURL=MagicLinkToken.d.ts.map