Rocky_Mountain_Vending/.pnpm-store/v10/files/ea/150f81cbc9b5523bb42a0ab8d951a4c977551e5dc320ed9b0133159fd63cbc5fabb4fd818b1de101a23a95bd881d44d0c982efe428d2585508b7e37ee590b7
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

51 lines
No EOL
2.1 KiB
Text

import type { Attributes } from '@opentelemetry/api';
import { ExpressLayerType } from './enums/ExpressLayerType';
import type { ExpressLayer, PatchedRequest } from './internal-types';
import type { ExpressInstrumentationConfig, LayerPathSegment } from './types';
/**
* Store layers path in the request to be able to construct route later
* @param request The request where
* @param [value] the value to push into the array
*/
export declare const storeLayerPath: (request: PatchedRequest, value?: string) => void;
/**
* Recursively search the router path from layer stack
* @param path The path to reconstruct
* @param layer The layer to reconstruct from
* @returns The reconstructed path
*/
export declare const getRouterPath: (path: string, layer: ExpressLayer) => string;
/**
* Parse express layer context to retrieve a name and attributes.
* @param route The route of the layer
* @param layer Express layer
* @param [layerPath] if present, the path on which the layer has been mounted
*/
export declare const getLayerMetadata: (route: string, layer: ExpressLayer, layerPath?: string) => {
attributes: Attributes;
name: string;
};
/**
* Check whether the given request is ignored by configuration
* It will not re-throw exceptions from `list` provided by the client
* @param constant e.g URL of request
* @param [list] List of ignore patterns
* @param [onException] callback for doing something when an exception has
* occurred
*/
export declare const isLayerIgnored: (name: string, type: ExpressLayerType, config?: ExpressInstrumentationConfig) => boolean;
/**
* Converts a user-provided error value into an error and error message pair
*
* @param error - User-provided error value
* @returns Both an Error or string representation of the value and an error message
*/
export declare const asErrorAndMessage: (error: unknown) => [error: string | Error, message: string];
/**
* Extracts the layer path from the route arguments
*
* @param args - Arguments of the route
* @returns The layer path
*/
export declare const getLayerPath: (args: [LayerPathSegment | LayerPathSegment[], ...unknown[]]) => string | undefined;
//# sourceMappingURL=utils.d.ts.map