import type { JSONSchema } from "../../definitions"; import type { Split } from "../../type-utils/split"; import type { ParseSchemaOptions } from "../index"; import type { ParseExternalReferenceSchema } from "./external"; import type { ParseInternalReferenceSchema } from "./internal"; export type ReferencingSchema = JSONSchema & { $ref: string; }; export type ParseReferenceSchema> = REFERENCE_ID_AND_PATH[0] extends "" ? ParseInternalReferenceSchema : ParseExternalReferenceSchema;