/*! * Copyright (C) Microsoft Corporation. All rights reserved. */ import type { JsonObject } from '../../Common/jsonTypes.js'; /** * Type guard for plain JSON objects. Used widely for safe property access * on `unknown` schema values before codegen processing begins. */ export declare function isJsonObject(value: unknown): value is JsonObject; /** Retrieves the properties map from a schema definition for iteration during code generation. */ export declare function getPropertiesNode(definition: JsonObject): JsonObject; /** Returns the set of required property names from a schema, used to determine optionality in generated types. */ export declare function getRequiredFields(definition: JsonObject): Set; /** Converts a JSON Schema type to the TypeScript type used in generated interfaces. */ export declare function mapJsonTypeToTypeScript(jsonType?: string): string; /** Decodes the `~1` and `~0` escape sequences in a JSON Pointer segment. */ export declare function decodeJsonPointerToken(token: string): string; /** Parses a local URI-fragment JSON Pointer into decoded path segments. */ export declare function parseLocalJsonPointer(refValue: string): string[] | undefined; /** Returns the definition name when a ref points directly to a top-level Swagger definition. */ export declare function extractDirectDefinitionName(refValue: string): string | undefined; /** Resolves a JSON Schema `$ref` to the TypeScript type name it refers to. */ export declare function extractReferencedType(refValue: string): string; /** Returns the schema's `name` field, which identifies the data source or connector. */ export declare function getNameNode(schema: unknown): string; /** Recursively collects all `.json` file paths under the given directory. */ export declare function getAllJsonFiles(folderPath: string): Promise; //# sourceMappingURL=schemaUtils.d.ts.map