Rocky_Mountain_Vending/.pnpm-store/v10/files/c7/e540ea168656f5d6b7c58efbe9ca07845e43ef52ac78941ab28215c7b927f401d914584075c679b2e7998ab4fd4eff69300aa3a2c863471bd41fa015ce2867
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

109 lines
3.8 KiB
Text

export interface Group {
pos: number;
repeat: boolean;
optional: boolean;
}
export interface RouteRegex {
groups: {
[groupName: string]: Group;
};
re: RegExp;
}
export type RegexReference = {
names: Record<string, string>;
intercepted: Record<string, string>;
};
type GetNamedRouteRegexOptions = {
/**
* Whether to prefix the route keys with the NEXT_INTERCEPTION_MARKER_PREFIX
* or NEXT_QUERY_PARAM_PREFIX. This is only relevant when creating the
* routes-manifest during the build.
*/
prefixRouteKeys: boolean;
/**
* Whether to include the suffix in the route regex. This means that when you
* have something like `/[...slug].json` the `.json` part will be included
* in the regex, yielding `/(.*).json` as the regex.
*/
includeSuffix?: boolean;
/**
* Whether to include the prefix in the route regex. This means that when you
* have something like `/[...slug].json` the `/` part will be included
* in the regex, yielding `^/(.*).json$` as the regex.
*
* Note that interception markers will already be included without the need
*/
includePrefix?: boolean;
/**
* Whether to exclude the optional trailing slash from the route regex.
*/
excludeOptionalTrailingSlash?: boolean;
/**
* Whether to backtrack duplicate keys. This is only relevant when creating
* the routes-manifest during the build.
*/
backreferenceDuplicateKeys?: boolean;
/**
* If provided, this will be used as the reference for the dynamic parameter
* keys instead of generating them in context. This is currently only used for
* interception routes.
*/
reference?: RegexReference;
};
type GetRouteRegexOptions = {
/**
* Whether to include extra parts in the route regex. This means that when you
* have something like `/[...slug].json` the `.json` part will be included
* in the regex, yielding `/(.*).json` as the regex.
*/
includeSuffix?: boolean;
/**
* Whether to include the prefix in the route regex. This means that when you
* have something like `/[...slug].json` the `/` part will be included
* in the regex, yielding `^/(.*).json$` as the regex.
*
* Note that interception markers will already be included without the need
* of adding this option.
*/
includePrefix?: boolean;
/**
* Whether to exclude the optional trailing slash from the route regex.
*/
excludeOptionalTrailingSlash?: boolean;
};
/**
* From a normalized route this function generates a regular expression and
* a corresponding groups object intended to be used to store matching groups
* from the regular expression.
*/
export declare function getRouteRegex(normalizedRoute: string, { includeSuffix, includePrefix, excludeOptionalTrailingSlash, }?: GetRouteRegexOptions): RouteRegex;
/**
* This function extends `getRouteRegex` generating also a named regexp where
* each group is named along with a routeKeys object that indexes the assigned
* named group with its corresponding key. When the routeKeys need to be
* prefixed to uniquely identify internally the "prefixRouteKey" arg should
* be "true" currently this is only the case when creating the routes-manifest
* during the build
*/
export declare function getNamedRouteRegex(normalizedRoute: string, options: GetNamedRouteRegexOptions): {
namedRegex: string;
routeKeys: {
[named: string]: string;
};
pathToRegexpPattern: string;
reference: RegexReference;
groups: {
[groupName: string]: Group;
};
re: RegExp;
};
/**
* Generates a named regexp.
* This is intended to be using for build time only.
*/
export declare function getNamedMiddlewareRegex(normalizedRoute: string, options: {
catchAll?: boolean;
}): {
namedRegex: string;
};
export {};