import { DeriveLabelsOptions } from "../../labels/derive_distinct_labels.js"; import { RenderCtxBase } from "../../render/api.js"; import "../../render/index.js"; import { DatasetOption } from "./dataset_selection.js"; import { MultiColumnSelector, PObjectSpec } from "@milaboratories/pl-model-common"; type SpecPredicateOption = MultiColumnSelector | MultiColumnSelector[] | ((spec: PObjectSpec) => boolean); export type BuildDatasetOptions = { /** Which result pool columns qualify as datasets. Defaults to all. */ primary?: SpecPredicateOption; /** * Restricts which result pool columns are considered as filters. Intersected * with the built-in `pl7.app/isSubset: "true"` constraint. Defaults to * accept-all. */ filter?: SpecPredicateOption; /** * Formatting options forwarded to label derivation for both filter and * enrichment rows. `formatters.native` on the filter path is overridden * — see `FilterMatchOptions.labelOptions`. */ labelOptions?: DeriveLabelsOptions; /** * Enables enrichment discovery and filters hits attached to * `DatasetOption.enrichments`. Use `() => true` to accept all; omit to disable. */ withEnrichments?: SpecPredicateOption; /** Maximum linker hops considered. Only used when `withEnrichments` is set. */ enrichmentMaxHops?: number; /** * Whether the dataset refs in the returned options carry `requireEnrichments: true`. * A block that stores such a ref depends on every block that enriches the dataset. * Set `false` for a block that only needs the dataset and its filters. Defaults to `true`. */ requireEnrichments?: boolean; }; /** * Usage: * ```ts * .output("datasetOptions", (ctx) => buildDatasetOptions(ctx)) * ``` */ export declare function buildDatasetOptions(ctx: RenderCtxBase, opts?: BuildDatasetOptions): DatasetOption[] | undefined; export {}; //# sourceMappingURL=build_dataset_options.d.ts.map