import type { EntityState, RulesetDefinition } from '@ai-rpg-engine/core'; import type { CharacterBuild, BuildCatalog } from './types.js'; /** Structured error thrown when a build cannot be resolved into an entity. */ export type BuildResolutionErrorShape = { code: 'BUILD_INVALID'; message: string; hint: string; /** The raw validation errors, individually (not just a joined string). */ details: string[]; }; export declare class BuildResolutionError extends Error { readonly code: BuildResolutionErrorShape['code']; readonly hint: string; readonly details: string[]; constructor(details: string[], message?: string); } /** * Resolve a character build into a playable EntityState. * Throws a structured BuildResolutionError (code BUILD_INVALID) if the build * fails validation against the catalog + ruleset. */ export declare function resolveEntity(build: CharacterBuild, catalog: BuildCatalog, ruleset: RulesetDefinition): EntityState; //# sourceMappingURL=resolve.d.ts.map