/** * Content-proof of 「a host is ours」(#266): declared for the TS callers(hosted live-probe, * feelreef domain-probe). The JS module owns the definition; this file only names its shape. */ /** Path of the per-deployment build stamp every site build writes. */ export const STAMP_PATH: string; export type StampProof = { /** true=a stamp we trust;false=a definite non-ours answer;null=no answer at all. */ proved: boolean | null; stamp: Record | null; source: string; reason: string; }; export type ServedByUsVerdict = { servedByUs: boolean | null; proof: 'build-stamp' | null; source: string; reason: string; }; export type ProofOptions = { fetchImpl?: typeof fetch; expectSource?: string; signal?: AbortSignal; [key: string]: unknown; }; export function fetchBuildStampProof(host: string, opts?: ProofOptions): Promise; export function proveServedByUs(host: string, html: string | null, opts?: ProofOptions): Promise; export function feelreefBuildMarker(html: string): string | null; /** Which marker proved it (`"data-page"` / `"_astro"`), or null — truthy/falsy, as inspect.js returns it. */ export function looksFeelreefBuilt(html: string): "data-page" | "_astro" | null; export function readStamp(text: string): Record | null; export function sameCommit(a: string, b: string): boolean;