/**
 * A strict RFC 8259 JSON parser that keeps every object member, duplicates
 * included, so the vault and identity-link strict profiles can refuse what
 * `JSON.parse` silently collapses. In-house so the SDK carries no JSON
 * parser dependency.
 *
 * It yields the node shape `@humanwhocodes/momoa` did (`Document`, `Object`
 * with `members[{ name, value }]`, `Array` with `elements[{ value }]`,
 * `String`, `Number`, `Boolean`, `Null`), which the callers walk unchanged.
 * Accepts exactly RFC 8259 text: no comments, no trailing commas, no byte
 * order mark, whitespace only space, tab, line feed and carriage return.
 * Throws `StrictJsonSyntaxError` on anything else.
 */
export type StringNode = {
    type: "String";
    value: string;
};
export type NumberNode = {
    type: "Number";
    value: number;
};
export type BooleanNode = {
    type: "Boolean";
    value: boolean;
};
export type NullNode = {
    type: "Null";
};
export type MemberNode = {
    type: "Member";
    name: StringNode;
    value: ValueNode;
};
export type ObjectNode = {
    type: "Object";
    members: MemberNode[];
};
export type ElementNode = {
    type: "Element";
    value: ValueNode;
};
export type ArrayNode = {
    type: "Array";
    elements: ElementNode[];
};
export type ValueNode = StringNode | NumberNode | BooleanNode | NullNode | ObjectNode | ArrayNode;
export type DocumentNode = {
    type: "Document";
    body: ValueNode;
};
export type Node = DocumentNode | ValueNode;
export declare class StrictJsonSyntaxError extends SyntaxError {
    readonly offset: number;
    constructor(message: string, offset: number);
}
export declare function parse(text: string): DocumentNode;
/** The value a node denotes. A later duplicate member wins, as with `JSON.parse`; `__proto__` is an own property. */
export declare function evaluate(node: Node): unknown;
//# sourceMappingURL=strict-json.d.ts.map