/** * Sign-in "magic link" extraction from email bodies. * * HTML is parsed for anchors BEFORE any stripHtml pass (stripHtml discards * hrefs). Every anchor is scored on URL keywords, opaque-token presence, * anchor-text wording (EN/DE), and sender-domain affiliation; boilerplate * (unsubscribe, privacy, social footers) is rejected outright. Plain-text * bodies get the same URL scoring on bare URLs — a first-class path, since * getEmail() yields either a text or an HTML body, never both. */ export interface MagicLinkMatch { link: string; anchorText?: string; score: number; source: 'html' | 'text'; } /** * Extract the most likely sign-in/verification link. Returns `undefined` * when nothing clears the acceptance threshold. */ export declare function extractMagicLink(input: { bodyHtml?: string; bodyText?: string; senderAddress: string; }): MagicLinkMatch | undefined; //# sourceMappingURL=verification-link.d.ts.map