import { GlobalCfgRenderCtx } from "../../render/internal.js"; import { ColumnFieldStatus, ColumnRecipe as ColumnRecipe$1, ColumnRecipeId, ColumnResolutionStatus, SpecQuery as SpecQuery$1 } from "./types.js"; import { ColumnDiscoveredRecipe } from "./column_discovered_recipe.js"; import { ColumnFilteredRecipe } from "./column_filtered_recipe.js"; import { ColumnOverriddenRecipe } from "./column_overrided_recipe.js"; import { ColumnUniversalId } from "@milaboratories/pl-model-common"; export interface ColumnRecipe extends ColumnRecipe$1 {} /** * Build a `ColumnRecipe` from a stringified id. Dispatches to the matching * concrete recipe variant based on the id's encoding and recurses on * wrappers' inner `source`: * * - bare {@link PObjectId} (non-JSON) → `DataColumnRecipe.fromId` * - `ColumnDiscoveredKey` → {@link ColumnDiscoveredRecipe} * - `ColumnOverriddenKey { source, specOverrides }` → recurse on `source`, * then {@link ColumnOverriddenRecipe.wrap} * - `ColumnFilteredKey { source, axisFilters }` → recurse on `source`, * then {@link ColumnFilteredRecipe.wrap} * * Returns `undefined` for unsupported variants (e.g. AnchoredPColumnId, * which needs an anchor map to resolve) or when a nested source itself * cannot be built. */ declare function ColumnRecipeBuild(id: ColumnUniversalId, opts?: { ctx?: GlobalCfgRenderCtx; }): undefined | ColumnRecipe; /** * Resolution status counterpart to {@link ColumnRecipeBuild}. Dispatches on * the parsed id shape to the matching `getStatusBy*` static — never * constructs the recipe. Use this at boundaries (resolver, filter/sort * targets) to tell an `absent` column from a `resolving` one: the recipe * factory returns `undefined` for both. */ declare function ColumnRecipeGetStatus(id: ColumnUniversalId, opts?: { ctx?: GlobalCfgRenderCtx; }): ColumnResolutionStatus; export declare const ColumnRecipe: typeof ColumnRecipeBuild & { readonly getStatus: typeof ColumnRecipeGetStatus; }; export { ColumnDiscoveredRecipe, ColumnFilteredRecipe, ColumnOverriddenRecipe, type ColumnRecipeId, type SpecQuery$1 as SpecQuery }; //# sourceMappingURL=index.d.ts.map