/** * The links the backend puts in its auth emails, as the login view reads them. * * The server builds them from the configured frontend URL: * `/reset-password?token=…` for a forgotten password, an admin's * "send reset email" and every invitation, and `/verify-email?token=…` * to confirm an address. The frontend URL may carry a base path (`/admin`), so * the action is the *last* path segment, not the whole path. */ export type EmailLinkAction = { kind: "reset-password"; token: string; } | { kind: "verify-email"; token: string; }; export declare function readEmailLinkAction(location: { pathname: string; search: string; }): EmailLinkAction | null; /** * Where the app lives: the link's own address without the action segment and * its token. `/admin/reset-password?token=…` becomes `/admin/`. */ export declare function appAddressOfEmailLink(location: { origin: string; pathname: string; }): string;