import type { IToken, TokenType } from "chevrotain"; export interface ContentAssistSuggestion { nextTokenType: TokenType; nextTokenOccurrence: number; ruleStack: string[]; occurrenceStack: number[]; } export interface BudgetedResult { suggestions: ContentAssistSuggestion[]; /** True if the path budget was hit before exploration finished. */ aborted: boolean; } export declare const DEFAULT_MAX_PATHS = 500000; /** * Drop-in replacement for `parser.computeContentAssist` that aborts after a * fixed number of explored paths. Returns the partial set of suggestions * collected before abort (typically empty for inputs that trigger the * exponential blow-up) along with an `aborted` flag. */ export declare function computeContentAssistBudgeted(ruleName: string, tokens: IToken[], maxPaths?: number): BudgetedResult;