export type JsonPrimitive = null | boolean | number | string;
export type JsonValue = JsonPrimitive | JsonObject | JsonArray;
export interface JsonObject {
    [key: string]: JsonValue;
}
export interface JsonArray extends Array<JsonValue> {
}
export type JsonReviver = (key: string, value: any) => any;
export interface JsonParseOptions {
    filepath?: string;
    reviver?: JsonReviver | undefined;
    throws?: boolean;
}
/**
 * Check if a value is a JSON primitive (null, boolean, number, or string).
 */
/*@__NO_SIDE_EFFECTS__*/
export declare function isJsonPrimitive(value: any): value is JsonPrimitive;
/**
 * Parse JSON content with error handling and BOM stripping.
 */
/*@__NO_SIDE_EFFECTS__*/
export declare function jsonParse(content: string | Buffer, options?: JsonParseOptions | undefined): JsonValue | undefined;
