export type BlockReason = "gallery" | "takedown"; export interface BlockedHost { host: string; reason: BlockReason; note: string; } export declare var GALLERY_HOSTS: BlockedHost[]; export declare var BLOCKED_HOSTS: BlockedHost[]; export declare var LOCAL_BLOCKLIST_FILE: string; export declare function localBlockedHosts(referenceHome: string): BlockedHost[]; export declare function blockedEntryFor(host: string, entries: BlockedHost[], matches: (recordHost: string, requested: string) => boolean): BlockedHost | null; export declare class ReferenceBlockedError extends Error { host: string; reason: BlockReason; constructor(entry: BlockedHost, host: string); }