import ParsingDfa4Table from "./parsing_dfa_4table.js"; /** * DFA based parser to match an integer, or an unsigned integer. */ export default class IntegerParser extends ParsingDfa4Table { /** * Construct the DFA table. */ constructor(); /** * Match a signed integer and returned the updated cursor position * or undefined if no match is found * * @param input The input buffer to match against. * @param cursor The cursor to test the match against. * @param endCursor The end point to look at in the buffer. * @return {number | undefined} The end of the match or undefined if none found. */ signed: (input: Uint8Array, cursor: number, endCursor: number) => number | undefined; /** * Match an unsigned integer and return the updated cursor position * or undefined if no match is found * * @param input The input buffer to match against. * @param cursor The cursor to test the match against. * @param endCursor The end point to look at in the buffer. * @return {number | undefined} The end of the match or undefined if none found. */ unsigned: (input: Uint8Array, cursor: number, endCursor: number) => number | undefined; static readonly Instance: IntegerParser; } //# sourceMappingURL=integer_parser.d.ts.map