astro-ghostcms/.pnpm-store/v3/files/d6/f70a5cae51af6fe8eaf3f83d52a...

16 lines
499 B
Plaintext

import type { AstroConfig } from '../@types/astro.js';
export declare function getFileInfo(id: string, config: AstroConfig): {
fileId: string;
fileUrl: string | undefined;
};
/**
* Normalizes different file names like:
*
* - /@fs/home/user/project/src/pages/index.astro
* - /src/pages/index.astro
*
* as absolute file paths with forward slashes.
*/
export declare function normalizeFilename(filename: string, root: URL): string;
export declare function cleanUrl(url: string): string;