Rocky_Mountain_Vending/.pnpm-store/v10/files/7e/5c4a1c4d8c2104418a1c15dd7b37f206c87bdf716d7e6c9f2db73ae976003085d14428ae170303c1fc8e6f972925081c038a628d88fc10835baaf28ec2a07a
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

27 lines
1.4 KiB
Text

import type { PageExtensions } from '../../build/page-extensions-type';
/**
* Finds a page file with the given parameters. If the page is duplicated with
* multiple extensions it will throw, otherwise it will return the *relative*
* path to the page file or null if it is not found.
*
* @param pagesDir Absolute path to the pages folder with trailing `/pages`.
* @param normalizedPagePath The page normalized (it will be denormalized).
* @param pageExtensions Array of page extensions.
*/
export declare function findPageFile(pagesDir: string, normalizedPagePath: string, pageExtensions: PageExtensions, isAppDir: boolean): Promise<string | null>;
/**
*
* createValidFileMatcher receives configured page extensions and return helpers to determine:
* `isLayoutsLeafPage`: if a file is a valid page file or routes file under app directory
* `isTrackedFiles`: if it's a tracked file for webpack watcher
*
*/
export declare function createValidFileMatcher(pageExtensions: PageExtensions, appDirPath: string | undefined): {
isPageFile: (filePath: string) => boolean;
isAppRouterPage: (filePath: string) => boolean;
isAppRouterRoute: (filePath: string) => boolean;
isAppLayoutPage: (filePath: string) => boolean;
isAppDefaultPage: (filePath: string) => boolean;
isMetadataFile: (filePath: string) => boolean;
isRootNotFound: (filePath: string) => boolean;
};