export interface StreamingJsonParseOptions {
    fallbackValue?: unknown;
    fallback?: unknown;
    allowPartial?: boolean;
    strict?: boolean;
    trimInput?: boolean;
}
export interface StreamingJsonParseResult<T> {
    value: T;
    parsed: boolean;
    ok?: boolean;
    usedPartialParser: boolean;
    error?: string;
}
export declare function parseStreamingJsonWithDiagnostics<T = any>(partialJson: string | undefined, options?: StreamingJsonParseOptions): StreamingJsonParseResult<T>;
/**
 * Convenience wrapper that returns just the decoded value from a possibly
 * mid-stream JSON snippet. Internally it leans on the diagnostic variant —
 * trying a strict `JSON.parse`, then a lenient partial-JSON pass, and finally
 * yielding the configured fallback — so callers always get something usable
 * back even when the input is still being streamed.
 */
export declare function parseStreamingJson<T = any>(partialJson: string | undefined, options?: StreamingJsonParseOptions): T;
