import type { SandstoneConfig } from './config.js'; import type { BASIC_CONFLICT_STRATEGIES, LiteralUnion } from './utils.js'; /** * Yes this sucks, but ESM won't let me have my way. */ /** * Configuration context passed to SandstonePack. * This replaces the old process.env-based configuration. */ export interface SandstoneContext { /** * The working directory for the project (where sandstone.config.ts lives). * Used for resolving cache paths and resources. */ workingDir: string; /** * The default namespace for the pack. */ namespace: string; /** * A unique identifier for the pack, used in scoreboard names etc. */ packUid: string; /** * Pack format configurations for datapack and resourcepack. Same shape * as `SandstoneConfig['packs']` so a config loaded from * `sandstone.config.ts` can be threaded straight into the context * without re-mapping field names. */ packOptions: SandstoneConfig['packs']; /** * Conflict resolution strategies per resource type. */ conflictStrategies?: Record>; /** * Version number to set in load.status scoreboard. */ loadVersion?: number; } /** * Set the global Sandstone context. Called by CLI before build. */ export declare function setSandstoneContext(ctx: SandstoneContext): void; /** * Get the current Sandstone context. * Throws if context hasn't been set. */ export declare function getSandstoneContext(): SandstoneContext; /** * Check if context has been set. */ export declare function hasContext(): boolean; /** * Reset the context (useful for testing or rebuilds). */ export declare function resetContext(): void; //# sourceMappingURL=context.d.ts.map