import type { OasRef } from '../ref/Ref.js'; import type { ToJsonSchemaOptions } from '../schema/Schema.js'; import type { OpenAPIV3 } from 'openapi-types'; /** * Constructor fields for {@link OasExample}. */ export type ExampleFields = { /** Short summary of the example */ summary?: string; /** Longer description of the example */ description?: string; /** The example value — absent when the example is given as an `externalValue` */ value?: unknown; /** The example as data that is valid against its schema (OpenAPI 3.2) */ dataValue?: unknown; /** The example in its serialized form (OpenAPI 3.2) */ serializedValue?: string; /** The external value of the example */ externalValue?: string; /** Custom extension fields (x-* properties) */ extensionFields?: Record; }; export declare class OasExample { /** Static identifier property for OasExample */ oasType: 'example'; /** @internal */ summary?: string; description?: string; value?: unknown; dataValue?: unknown; serializedValue?: string; externalValue?: string; extensionFields?: Record; constructor(fields: ExampleFields); /** Returns true if object is a reference */ isRef(): this is OasRef<'example'>; /** Always `false`: `readOnly` is a schema keyword. */ isReadOnly(): boolean; /** Always `false`: `writeOnly` is a schema keyword. */ isWriteOnly(): boolean; /** Returns itself */ resolve(): OasExample; resolveOnce(): OasExample; toJsonSchema(_options: ToJsonSchemaOptions): OpenAPIV3.ExampleObject & { dataValue?: unknown; serializedValue?: string; }; }