Files
e-tib.com/node_modules/.pnpm/robots-parser@3.0.1/node_modules/robots-parser/index.d.ts
Marc Mintel d14122005d Initial commit: E-TIB production hardening & E2E foundation
Former-commit-id: ef04fca3d76375630c05aac117bf586953f3b657
2026-04-28 19:11:38 +02:00

13 lines
421 B
TypeScript

declare module 'robots-parser';
interface Robot {
isAllowed(url: string, ua?: string): boolean | undefined;
isDisallowed(url: string, ua?: string): boolean | undefined;
getMatchingLineNumber(url: string, ua?: string): number;
getCrawlDelay(ua?: string): number | undefined;
getSitemaps(): string[];
getPreferredHost(): string | null;
}
export default function robotsParser(url: string, robotstxt: string): Robot;