@signalwire/docusaurus-plugin-llms-txt
Version:
Generate Markdown versions of Docusaurus HTML pages and an llms.txt index file
18 lines • 802 B
TypeScript
/**
* Route rules engine
* Handles route rule matching, validation, and application
*/
import type { RouteRule, PluginOptions, EffectiveConfig, ContentOptions } from '../types';
/**
* Find the most specific matching route rule
*/
export declare function findMostSpecificRule(path: string, routeRules: readonly RouteRule[]): RouteRule | null;
/**
* Apply route rule to create effective configuration
*/
export declare function applyRouteRule(rule: RouteRule | null, baseConfig: PluginOptions, contentConfig: Required<ContentOptions>, path: string, routeSegment?: string): EffectiveConfig;
/**
* Validate route rules for conflicts and throw errors for true conflicts
*/
export declare function validateRouteRules(routeRules: readonly RouteRule[]): void;
//# sourceMappingURL=route-rules.d.ts.map