Files
airllm-fork-nodejs/node_modules/node-llama-cpp/dist/utils/gbnfJson/terminals/GbnfRepetition.d.ts
2026-02-05 15:27:49 +08:00

16 lines
613 B
TypeScript

import { GbnfTerminal } from "../GbnfTerminal.js";
import { GbnfGrammarGenerator } from "../GbnfGrammarGenerator.js";
export declare class GbnfRepetition extends GbnfTerminal {
readonly value: GbnfTerminal;
readonly separator?: GbnfTerminal;
readonly minRepetitions: number;
readonly maxRepetitions: number | null;
constructor({ value, separator, minRepetitions, maxRepetitions }: {
value: GbnfTerminal;
separator?: GbnfTerminal;
minRepetitions?: number;
maxRepetitions?: number | null;
});
getGrammar(grammarGenerator: GbnfGrammarGenerator): string;
}