import type { AccountItem } from "@remit/data-ports"; import type { Logger } from "@remit/logger"; /** * True when `host` is a reserved placeholder name that can never resolve. * * Matches the bare `invalid`/`example` and any subdomain of those namespaces * (`mail.example`, `foo.invalid`, …). Suffix matching is anchored on the dot so * real hosts like `invalid.com` or `imap.gmail.com` are NOT treated as reserved. */ export declare const isReservedHost: (host: string) => boolean; /** * Check if an account's IMAP host can never resolve (reserved TLD). * Returns true if the account should be skipped cleanly — no connection * attempt, no thrown error, so the event is acked rather than dead-lettered. */ export declare const isUnsyncableHost: (account: AccountItem, log: Logger) => boolean; /** * Check if an account is deleted (tombstone pattern). * Returns true if the account should be skipped. */ export declare const isAccountDeleted: (account: AccountItem, log: Logger) => boolean; /** * Check if an account requires re-authentication (e.g. OAuth token revoked). * Returns true if the account should be skipped until the user re-auths. */ export declare const isAccountReauthRequired: (account: AccountItem, log: Logger) => boolean; export declare const isMailSyncDisabled: (account: AccountItem, log: Logger) => boolean;