UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

23 lines (22 loc) 943 B
import type { AstroSettings, ManifestData } from '../../../types/astro.js'; import type { Logger } from '../../logger/core.js'; import nodeFs from 'node:fs'; import type { RoutePart } from '../../../types/public/internal.js'; export declare function getParts(part: string, file: string): RoutePart[]; export declare function validateSegment(segment: string, file?: string): void; export interface CreateRouteManifestParams { /** Astro Settings object */ settings: AstroSettings; /** Current working directory */ cwd?: string; /** fs module, for testing */ fsMod?: typeof nodeFs; } /** Create manifest of all static routes */ export declare function createRouteManifest(params: CreateRouteManifestParams, logger: Logger, { dev }?: { dev?: boolean; }): Promise<ManifestData>; export declare function resolveInjectedRoute(entrypoint: string, root: URL, cwd?: string): { resolved: string; component: string; };