/** * Check if a schema has $recursiveAnchor: true. * @param {object} schema - The schema object * @returns {boolean} */ export declare function hasRecursiveAnchor(schema: object): boolean; /** * Get the $dynamicAnchor name from a schema. * @param {object} schema - The schema object * @returns {string|null} */ export declare function getDynamicAnchorName(schema: object): string | null; /** * Collect ALL dynamic anchors of a schema RESOURCE: every $dynamicAnchor * reachable from the given schema without crossing into an embedded * resource (a subschema that declares its own $id). * * Per draft 2020-12, entering a schema resource during evaluation brings * every $dynamicAnchor of that resource into the dynamic scope - wherever * it sits ($defs, allOf branches, properties, ...), not just at the root. * * @param {object} schema - The resource root schema object * @returns {Array<{name: string, schema: object, validator: (function|null)}>} */ export declare function collectDynamicAnchorsDeep(schema: object): Array<{ name: string; schema: object; validator: (Function | null); }>; /** * Collect all dynamic anchors from a schema's immediate definitions ($defs/definitions). * This is used to find all $dynamicAnchor definitions that should be in scope * when following a $ref from this schema. * * IMPORTANT: This only collects from the IMMEDIATE $defs of the given schema, * not recursively. * * @param {object} schema - The schema object * @returns {Array<{name: string, schema: object}>} Array of {name, schema} objects */ export declare function collectDynamicAnchors(schema: object): Array<{ name: string; schema: object; }>;