import type { JsonValue } from "./api-types.js";
export interface JsonValueValidationOptions {
    readonly maxBytes: number;
    readonly maxDepth: number;
}
export type JsonValueValidationResult = {
    readonly ok: true;
    readonly bytes: number;
    readonly depth: number;
} | {
    readonly ok: false;
    readonly code: "json.invalid" | "json.depth-limit" | "json.size-limit";
};
export declare function validateJsonValue(value: unknown, options: JsonValueValidationOptions): JsonValueValidationResult;
export declare function isJsonValue(value: unknown): value is JsonValue;
export declare function validatePluginViewState(value: unknown): JsonValueValidationResult;
export declare function isValidPluginViewTitle(value: unknown): value is string;
