import { type ParserError, type ParserState, s } from '@hashbrownai/core'; /** * The result object returned by the `useJsonParser` hook. * * @public * @typeParam Output - The type resolved by the schema. */ export interface UseJsonParserResult { /** * The current streaming JSON parser state. */ parserState: ParserState; /** * The latest resolved value produced by the schema or parser state. */ value: Output | undefined; /** * The current parser or schema error, if any. */ error: ParserError | Error | undefined; } /** * Create a prop-driven streaming JSON parser that can optionally resolve values with a Skillet schema. * * @public * @typeParam Schema - The Hashbrown schema used to resolve streaming values. * @param json - The full JSON string that grows over time. * @param schema - Optional Skillet schema to resolve values from the parser state. */ export declare function useJsonParser(json: string, schema: Schema): UseJsonParserResult>; //# sourceMappingURL=use-json-parser.d.ts.map