export { /** A full JSON parser: a tokenizer and a token parser wired to each other. */ default as JSONParser, /** The options that a `JSONParser` can be created with. */ type JSONParserOptions, } from "./jsonparser.js"; export { /** A JSON-compliant tokenizer that turns a utf-8 stream into JSON tokens. */ default as Tokenizer, /** The error thrown when the tokenizer is misconfigured or hits invalid JSON. */ TokenizerError, /** The options that a `Tokenizer` can be created with. */ type TokenizerOptions, } from "./tokenizer.js"; export { /** A parser that assembles the tokens emitted by a tokenizer into JSON values. */ default as TokenParser, /** The error thrown when the token parser is misconfigured or gets an unexpected token. */ TokenParserError, /** The options that a `TokenParser` can be created with. */ type TokenParserOptions, } from "./tokenparser.js"; /** The types of the JSON values that the parser produces. */ export * as JsonTypes from "./utils/types/jsonTypes.js"; export type { /** A parsed value that was found inside a JSON array. */ ParsedArrayElement, /** A parsed value, along with where it was found in the JSON document. */ ParsedElementInfo, /** A parsed value that was found inside a JSON object. */ ParsedObjectProperty, /** The top-level value of a JSON document. */ ParsedTopLevelElement, } from "./utils/types/parsedElementInfo.js"; export type { /** A `:` token. */ ParsedColonTokenInfo, /** A `,` token. */ ParsedCommaTokenInfo, /** A `false` token. */ ParsedFalseTokenInfo, /** A `{` token. */ ParsedLeftBraceTokenInfo, /** A `[` token. */ ParsedLeftBracketTokenInfo, /** A `null` token. */ ParsedNullTokenInfo, /** A number token. */ ParsedNumberTokenInfo, /** A `}` token. */ ParsedRightBraceTokenInfo, /** A `]` token. */ ParsedRightBracketTokenInfo, /** A separator between two JSON documents. */ ParsedSeparatorTokenInfo, /** A string token. */ ParsedStringTokenInfo, /** A JSON token, along with where it was found in the JSON stream. */ ParsedTokenInfo, /** A `true` token. */ ParsedTrueTokenInfo, } from "./utils/types/parsedTokenInfo.js"; export { /** One of the containers that the value currently being parsed is nested in. */ type StackElement, /** Whether the container being parsed is a JSON object or a JSON array. */ TokenParserMode, } from "./utils/types/stackElement.js"; export { /** The type of a JSON token, as reported by the tokenizer's `onToken` callback. */ default as TokenType, } from "./utils/types/tokenType.js"; /** The utf-8 byte values that the tokenizer matches the incoming stream against. */ export * as utf8 from "./utils/utf-8.js";