/** * Classifies whether a JSON-shaped tag argument has balanced bracket/brace * delimiters before the JSON parser decides whether the value is valid JSON. * * This deliberately does not validate JSON syntax. Balanced-but-invalid JSON * such as `[1,2,]` must still reach the existing raw-string fallback paths. * * @internal */ type JsonLikeBalanceStatus = "not-json-like" | "balanced" | "unbalanced"; /** * Incrementally tracks bracket/brace balance for a JSON-shaped text stream. * * @internal */ export declare function createJsonLikeBalanceTracker(): { append(text: string): number | null; }; /** * Returns whether a raw argument begins with a bracketed JSON-shaped structure * and, if so, whether that structure is balanced. "Unbalanced" covers both * missing closing delimiters and mismatched delimiters. * * @internal */ export declare function getJsonLikeBalanceStatus(rawArgumentText: string): JsonLikeBalanceStatus; export {}; //# sourceMappingURL=json-like-balance.d.ts.map