Rocky_Mountain_Vending/.pnpm-store/v10/files/0f/63a7b302a12615b0a3c0114e8b17e8a990e4a36ace075c584f56f081d4dd2ab807ddaeb789f486c025f75b51706aeee542344acaedbb5bf3f549ec3b5884c0
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

30 lines
1.3 KiB
Text

export declare function decodeMagicIdentifier(identifier: string): string;
export declare const MAGIC_IDENTIFIER_REGEX: RegExp;
/**
* Cleans up module IDs by removing implementation details.
* - Replaces [project] with .
* - Removes content in brackets [], parentheses (), and angle brackets <>
*/
export declare function deobfuscateModuleId(moduleId: string): string;
/**
* Removes the free call wrapper pattern (0, expr) from expressions.
* This is a JavaScript pattern to call a function without binding 'this',
* but it's noise for developers reading error messages.
*/
export declare function removeFreeCallWrapper(text: string): string;
export type TextPartType = 'raw' | 'deobfuscated';
/**
* Deobfuscates text and returns an array of discriminated parts.
* Each part is a tuple of [type, string] where type is either 'raw' (unchanged text)
* or 'deobfuscated' (a magic identifier that was decoded).
*
* This is useful when you need to process or display deobfuscated and raw text differently.
*/
export declare function deobfuscateTextParts(text: string): Array<[TextPartType, string]>;
/**
* Deobfuscates text by:
* 1. Decoding magic identifiers
* 2. Cleaning up module IDs
* 3. Removing free call wrappers
*/
export declare function deobfuscateText(text: string): string;