import type { DesignTokens } from '../core/types.js'; /** * Load and validate design tokens defined in configuration. * * Token groups or entire design token objects may be provided inline as * objects, or as file paths relative to a base directory. Each token set is * parsed and validated using the DTIF parser. * * @param tokens - Token definitions or file path references keyed by theme. * @param baseDir - Directory used to resolve token file paths. * @returns A theme record or single design token object. * @throws {DtifTokenParseError} When token parsing fails. * @throws {Error} When token files cannot be read. * * @example * ```ts * const tokens = await loadTokens({ light: './light.tokens.json' }, process.cwd()); * console.log(Object.keys(tokens)); * ``` */ export declare function loadTokens(tokens: unknown, baseDir: string): Promise>; //# sourceMappingURL=token-loader.d.ts.map