import { AstroConfig } from 'astro'; /** * Checks if a file is a page file. * @param filePath The path to the file. * @param config The Astro config. * @returns True if the file is a page file, false otherwise. */ export declare function isPageFile(filePath: string, config: AstroConfig): boolean; /** * Converts a route segment to a route path. * @param segment The route segment. * @returns The route path. */ export declare function toRoutePath(segment: string): string; /** * Extracts parameters from a route segment. * @param segment The route segment. * @returns An array of parameters. */ export declare function extractParams(segment: string): string[]; /** * Strips the file extension and returns the route segment name. * @param filename The filename to convert (e.g. `"[slug].astro"`). * @returns The segment without extension (e.g. `"[slug]"`). * @example fileToSegment("about.astro") // → "about" * @example fileToSegment("[slug].astro") // → "[slug]" */ export declare function fileToSegment(filename: string): string; /** * Checks if a route segment is dynamic (contains a parameter). * @param segment The route segment to check. * @returns `true` if the segment is dynamic. * @example isDynamic("[slug]") // → true * @example isDynamic("about") // → false */ export declare function isDynamic(segment: string): boolean; /** * Checks if a route segment is a catch-all parameter. * @param segment The route segment to check. * @returns `true` if the segment is a catch-all. * @example isCatchAll("[...slug]") // → true * @example isCatchAll("[slug]") // → false */ export declare function isCatchAll(segment: string): boolean; /** * Checks if a segment represents an index route. * @param segment The route segment to check. * @returns `true` if the segment is `"index"`. */ export declare function isIndex(segment: string): boolean; //# sourceMappingURL=utils.d.ts.map