import { JSONParseStreamRaw } from "./JSONParseStreamRaw.js"; import { JSONPath } from "./jsonPathToPathArray.js"; import { StandardSchemaV1 } from "@standard-schema/spec"; //#region src/JSONParseStream.d.ts type JSONParseStreamOutput = T extends { key?: infer K | undefined; path: infer P extends JSONPath; schema?: infer S extends StandardSchemaV1 | undefined; } ? { value: S extends StandardSchemaV1 ? StandardSchemaV1.InferOutput : unknown; wildcardKeys?: string[]; } & (undefined extends K ? { key: P; } : { key: K; }) : T extends JSONPath ? { key: T; value: unknown; wildcardKeys?: string[]; } : never; declare class JSONParseStream extends TransformStream> { _parser: JSONParseStreamRaw; constructor(jsonPaths: T, options?: { multi?: boolean; }); } //#endregion export { JSONParseStream };