import type { Attribute } from "../../../attributes/types"; import type { Dataset } from "../../../datasets/types"; import type { JsonSchemaConnectorPolicy } from "./json-schema-types"; import type { PolicyEvaluation } from "./policy-branches"; /** * Evaluate an array of JSON-Schema-based connector policies against a dataset. * * Eligibility is determined by checking whether the dataset's Rosetta Stone * attributes satisfy at least one anyOf branch in the policy schema. This uses * the `attributes` array (resolved from dataset mappings) as the source of truth, * NOT the raw dataset.schema — the raw schema contains storage-level column names * and flat types that don't match the policy's Rosetta Stone attribute names. * * A policy is considered valid (compatible) if `findMatchingBranches` finds at * least one satisfied branch. * * @param _dataset - The dataset (currently unused; attributes carry the relevant info). * @param attributes - Rosetta Stone attributes associated with the dataset. * @param policies - JSON-Schema-based connector policies to evaluate. * @returns An array of PolicyEvaluation results, one per policy. */ export declare function evaluateJsonSchemaPolicies(_dataset: Dataset, attributes: Attribute[], policies: JsonSchemaConnectorPolicy[]): PolicyEvaluation[];