import { IncomingMessage } from "http"; export interface Request { /** The path of the request's URL (e.g. "/about") */ path: string; /** The request's HTTP method (e.g. "GET", "POST") */ method: string; /** The request's HTTP headers */ headers: Record; } /** * Agent types that can be controlled with robots.txt rules. */ export declare enum AgentType { AIAgent = "AI Agent", AIAssistant = "AI Assistant", AIDataScraper = "AI Data Scraper", AISearchCrawler = "AI Search Crawler", Archiver = "Archiver", DeveloperHelper = "Developer Helper", Fetcher = "Fetcher", HeadlessAgent = "Headless Agent", IntelligenceGatherer = "Intelligence Gatherer", Scraper = "Scraper", SEOCrawler = "SEO Crawler", SearchEngineCrawler = "Search Engine Crawler", SecurityScanner = "Security Scanner", UndocumentedAIAgent = "Undocumented AI Agent" } export declare class DarkVisitors { private readonly accessToken; /** * Creates a new instance of the Dark Visitors client. * * @param accessToken - Your project's access token. */ constructor(accessToken: string); /** * Tracks an agent visit in Dark Visitors agent analytics. * * @param visitRequest - The incoming visit request. */ trackVisit(request: Request): void; trackVisit(request: IncomingMessage): void; /** * Generates a `robots.txt` file that disallows the specified agent types. * Cache and serve this string at your website’s `/robots.txt` endpoint. * * @param agentTypes - A list of agent types to include. * @param disallow - A path to disallow (default is "/" for all paths). * @returns The generated `robots.txt` as a string. * @throws If the API call fails or returns a non-200 status. */ generateRobotsTxt(agentTypes: AgentType[], disallow?: string): Promise; private filterHeaders; } //# sourceMappingURL=index.d.ts.map