UNPKG

astro

Version:

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

21 lines (20 loc) 718 B
import nodeFs from 'node:fs'; import type { AstroSettings, RoutesList } from '../../../types/astro.js'; import type { Logger } from '../../logger/core.js'; 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 createRoutesList(params: CreateRouteManifestParams, logger: Logger, { dev }?: { dev?: boolean; }): Promise<RoutesList>; export declare function resolveInjectedRoute(entrypoint: string, root: URL, cwd?: string): { resolved: string; component: string; }; export {};