import type { TollgateConfig } from "./config.js"; /** Stable discovery document version for agent-readable yellow pages. */ export declare const DISCOVER_VERSION: 1; /** Primary free discovery path (no 402). */ export declare const DISCOVER_PATH = "/x402/discover"; /** Convenience alias — same payload as {@link DISCOVER_PATH}. */ export declare const DISCOVER_ALIAS_PATH = "/discover"; export type DiscoverServiceStatus = "live" | "demo" | "config"; export interface DiscoverService { id: string; label: string; endpoint: string; mcp: string; capabilities: string[]; price: string; asset: string; payTo: string; seller: string; status: DiscoverServiceStatus; } export interface DiscoverDocument { version: typeof DISCOVER_VERSION; network: string; updatedAt: string; /** * Honesty note: this catalog is built from local merchant JSON / SELLER / * demo — not an on-chain Agent Registry stake contract. */ source: "merchants" | "seller" | "mixed"; services: DiscoverService[]; } /** * Health-ish status for a listed service. * - live: CDP facilitator credentials + payTo present (real settle path) * - demo: protocol-shaped 402 / MCP PaymentRequired, no on-chain settle * - config: merchant/seller entry present but primary accept is not CDP-live */ export declare function resolveDiscoverStatus(config: TollgateConfig): DiscoverServiceStatus; /** * Build agent-readable discovery yellow pages from existing sources only: * MERCHANTS_JSON / merchants file / SELLER / built-in demo. * Does **not** deploy or require Registry.sol. */ export declare function buildDiscoverDocument(config: TollgateConfig, now?: Date): DiscoverDocument;