/** * Shared flag-parsing and error-classification helpers for the MRT bundle * commands (`deploy`, `upload-v2`). Kept in one place so the two commands * cannot drift. */ /** * Parses a glob pattern string into an array of patterns. * Accepts either a JSON array (e.g. '["server/**\/*", "ssr.{js,mjs}"]') * or a comma-separated string (e.g. 'server/**\/*,ssr.js'). * JSON array format supports brace expansion in individual patterns. */ export declare function parseGlobPatterns(value: string): string[]; /** * Parses SSR parameter flags into a key-value object. * Accepts format: key=value */ export declare function parseSsrParams(params: string[]): Record; /** Patterns that indicate a 403/authorization error, typically caused by an invalid project ID */ export declare const MRT_AUTH_ERROR_PATTERNS: string[]; /** Suggestion shown when a deploy/push operation fails with a 403/authorization error */ export declare const MRT_PROJECT_SUGGESTION = "To see projects you have access to, run: b2c mrt project list --limit 10"; /** Returns true when the error message looks like a 403/authorization failure. */ export declare function isMrtAuthError(error: Error): boolean;