import type { JSX } from "react"; import type { JSONSchema } from "@theme/JSONSchemaViewer/types"; import type { CheckKey } from "@theme/JSONSchemaViewer/utils/QualifierMessages"; export type JSVOptions = { fullSchema: JSONSchema; /** * Should we display "examples" ? * @default false */ showExamples?: boolean; /** * To overwrite the order to display qualifier messages * @default ["nullable","deprecated","readOnly","writeOnly","enum","stringLength","objectProperties","no-extra-properties","arrayItems","arrayContains","no-extra-items","number-range","pattern","multipleOf","uniqueItems","contentEncoding","contentMediaType","contentSchema","default","const","examples"] */ qualifierMessagesOrder?: CheckKey[]; /** * To overwrite the printout of "description" * By default, print out as provided * @default undefined */ DescriptionComponent?: (params: { description: string; }) => JSX.Element; /** * To overwrite the printout of "examples", "default", "const", and "enum" * By default, print out as provided * @default undefined */ ValueComponent?: (params: { value: unknown; schema: JSONSchema; }) => JSX.Element; /** * To overwrite the default handling of unresolved $refs * By default, print out as provided * @default undefined */ UnresolvedRefsComponent?: (params: { schema: JSONSchema; }) => JSX.Element; /** * Defines how deep the schema should be expanded by default * Examples: * - 0: only the root level is expanded * - 1: root level and its direct children are expanded * - Infinity: expand all levels * @default 0 * @min 0 */ defaultExpandDepth?: number; }; export declare const JSVOptionsContext: import("react").Context; export declare const useJSVOptionsContext: () => JSVOptions; export declare const JSVOptionsContextProvider: import("react").Provider; //# sourceMappingURL=jsvOptions.d.ts.map