import type { CheckCategory, Grade } from './types.js'; export declare const VERSION: string; export declare const USER_AGENT: string; /** * What an AI client does with a page, and therefore what a site loses by * blocking it. This distinction is the single most important thing an audit can * tell an operator: blocking a training crawler is a policy choice, while * blocking a search crawler removes the site from that assistant's answers. * * - `training` — builds model training corpora. * - `search` — builds the index a live assistant cites from. * - `user-fetch` — retrieves one URL because a human asked for it, right now. * - `agent` — an autonomous browser acting on a user's behalf. */ export type CrawlerPurpose = 'training' | 'search' | 'user-fetch' | 'agent'; export interface CrawlerInfo { vendor: string; purpose: CrawlerPurpose; /** * Whether the vendor documents that this client obeys robots.txt. * `partial` covers clients documented as "may not apply" — chiefly * user-triggered fetchers, which most vendors exempt. */ honorsRobots: boolean | 'partial'; /** One sentence on what blocking this client costs. Surfaced directly in findings. */ impact: string; /** Vendor documentation for the token. */ docUrl: string; /** Published IP-range list, where the vendor offers one for reverse verification. */ ipListUrl?: string; /** Vendor signs requests with Web Bot Auth (RFC 9421 HTTP Message Signatures). */ signsRequests?: boolean; /** * A robots.txt control token that never appears in a request. `Google-Extended` * and `Applebot-Extended` govern how an already-crawled page may be used; no * user agent carries these strings, so probing a site with them tests nothing. */ tokenOnly?: boolean; /** Extra context: renames, documentation changes, unusual behaviour. */ note?: string; } /** * Per-token metadata for the crawlers worth explaining. Tokens in * `AI_CRAWLERS` without an entry here are recognised for matching but carry no * tailored advice — the long tail of data brokers and regional assistants. * * Every entry was verified against vendor documentation on 2026-09-04. */ export declare const CRAWLER_META: Record; /** * Known AI clients grouped by what they do with a page. Matching is * case-insensitive, per RFC 9309 §2.2.1, so the casing here is cosmetic and * follows each vendor's own documentation. * * Verified against vendor documentation on 2026-09-04. Tokens that turned out * never to have existed (`Gemini`, `GeminiBot`, `DeepSeek-AI`) or to belong to * discontinued products (`NeevaBot`, `GoogleAgent-Mariner`) moved to * `LEGACY_AI_CRAWLERS`. */ export declare const AI_CRAWLERS: Record; /** * Tokens recognised for matching but never recommended: renamed, retired, or * never real. A site that lists these is not wrong, but the rules are inert, so * the audit says so rather than counting them as coverage. */ export declare const LEGACY_AI_CRAWLERS: Record; export declare const ALL_AI_CRAWLERS: string[]; /** * The crawlers that matter most as of September 2026, by request share * (Cloudflare Radar) and by what a site loses when each is blocked. Used for * reporting, access probes, and remediation advice. * * Composition: the six highest-volume clients (Googlebot's AI use is governed * by Google-Extended, Applebot's by Applebot-Extended, hence the opt-out tokens * standing in for them), the broadest training corpus (CCBot), the three search * bots whose absence costs citations, and the one user-triggered fetcher with * material volume. */ export declare const CORE_AI_CRAWLERS: string[]; /** * Core crawlers that actually issue HTTP requests. * * `Google-Extended` and `Applebot-Extended` are robots.txt control tokens: they * govern how an already-crawled page may be used, and no request ever carries * them as a user agent. Probing a site with those strings tests nothing, so * access checks use this list instead of the full core set. */ export declare const PROBEABLE_CORE_CRAWLERS: string[]; /** Look up a crawler's metadata case-insensitively. */ export declare function crawlerInfo(token: string): CrawlerInfo | undefined; /** Purpose bucket a token belongs to, or `undefined` when it is not a known AI client. */ export declare function crawlerPurpose(token: string): CrawlerPurpose | undefined; /** Explanation for a retired or fictional token, or `undefined` when the token is current. */ export declare function legacyCrawlerNote(token: string): string | undefined; /** * Weight per check, summing to 100. A check's own `meta.weight` overrides this * map. * * The 4.0 distribution follows the evidence about what actually stops an agent, * rather than what is easiest to check: * * - **Content (33)** leads, because the failure that breaks the most agents is * a page with nothing in the HTML. Most crawlers do not run JavaScript, and a * site whose content only appears after hydration is invisible to them no * matter how many discovery files it publishes. `agent-operability` joins it * at 7: browser agents read the accessibility tree, and a page of unnamed * controls cannot be operated at all. * - **Access (24)** is second, because a WAF rule or a `nosnippet` directive * silently undoes everything else. These are also the failures operators are * least likely to know about. * - **Discovery (21)** carries robots.txt at 9 and llms.txt at 5. llms.txt was * the highest-weighted check in 3.x at 11; it is demoted because the evidence * is that most published files are never fetched by an AI search crawler, and * the vendors that do read it are coding agents. It matters, but not twice as * much as whether the page has content. * - **Protocols (13)** are all conditional: a site without the surface reports * N/A and the weight leaves the denominator, so a blog is never marked down * for lacking an API description. * - **Policy (9)** covers declared usage rights and security contact. * * Checks on draft specifications (`ai-catalog`, `webmcp`, `commerce-discovery`) * stay at 0. Scoring a site against a specification that may be renamed next * quarter would make the number less trustworthy, not more. */ export declare const CHECK_WEIGHTS: Record; /** * Report grouping per check. A check's own `meta.category` takes precedence. * Mirrors the `CHECK_WEIGHTS` pattern: data lives here, overrides live on the check. */ export declare const CHECK_CATEGORIES: Record; export declare const GRADES: Grade[]; /** * Content Signals Policy vocabulary (https://contentsignals.org, CC0): machine-readable * `Content-Signal:` robots.txt directives expressing how content may be used after access. * Absence of a signal is neutral — it neither grants nor restricts. */ export declare const CONTENT_SIGNALS: string[]; /** * Values of the optional fourth Content Signals field `use`, introduced by * Cloudflare on 2026-07-01 and now emitted by its managed robots.txt: * `immediate` (interact, store nothing), `reference` (index, excerpt, link * back — the stated default) and `full` (summarize and reproduce). * https://blog.cloudflare.com/content-independence-day-ai-options/ */ //# sourceMappingURL=constants.d.ts.map