/** * Assertion helpers for site-native theme files (#944). * * Drop this into a consuming repo's CI/test suite to gate a native theme * file against the token contract: * * ```ts * import { assertNativeTheme } from '@lgtm-hq/turbo-themes/native-theme'; * import { readFileSync } from 'node:fs'; * * assertNativeTheme(readFileSync('src/styles/my-theme.css', 'utf8'), 'my-theme'); * ``` */ import { type NativeThemeValidation } from './validator.js'; export declare class NativeThemeValidationError extends Error { readonly validation: NativeThemeValidation; constructor(validation: NativeThemeValidation, message: string); } /** * Assert a native theme given as CSS source; throws with a full report when * the theme does not satisfy the contract. */ export declare function assertNativeTheme(css: string, source?: string): NativeThemeValidation; /** * Assert a native theme given as a token map (`--turbo-x` → value). */ export declare function assertNativeThemeTokens(tokens: Record, source?: string): NativeThemeValidation; //# sourceMappingURL=assert.d.ts.map