/** * Node-only filesystem loaders for the YAML semantic layer. * * This module is intentionally separate from `yaml-loader.ts` (which is * browser-safe: pure string/object parsing and serialization) because it * imports `node:fs`/`node:path`. Keeping the filesystem traversal here means * the browser-reachable barrel never drags node builtins into a browser * bundle. Node consumers import filesystem loaders from here (or the semantic * barrel, which re-exports from here); browser consumers use the pure helpers * in `yaml-loader.ts`. */ import { SemanticLayer } from './semantic-layer.js'; /** * Load a SemanticLayer from a directory on disk. * Expected structure: * semanticLayerDir/ * metrics/ → *.yaml metric definitions * dimensions/ → *.yaml dimension definitions * hierarchies/ → *.yaml hierarchy definitions * cubes/ → *.yaml cube definitions * segments/ → *.yaml segment definitions * pre_aggregations/ → *.yaml pre-aggregation definitions * blocks/ → *.yaml block companion definitions (metadata only, not loaded into layer) */ export declare function loadSemanticLayerFromDir(semanticLayerDir: string): SemanticLayer; //# sourceMappingURL=yaml-loader.node.d.ts.map