import { JsonNode } from "./types.js";
import type { Color } from "../../tui/elements.js";
export type JsonLine = {
    ownerPath: string;
    segments: JsonSegment[];
};
export type JsonSegment = {
    text: string;
    fg?: Color;
    bg?: Color;
};
export type JsonRenderOpts = {
    open: ReadonlySet<string>;
    cursorPath?: string;
};
export declare function renderJson(node: JsonNode, opts: JsonRenderOpts): JsonLine[];
export declare function lineToText(line: JsonLine): string;
export declare function defaultOpenSet(root: JsonNode): Set<string>;
