/** * Copyright IBM Corp. 2026 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import stylelint from 'stylelint'; import type { CarbonToken, TokenCollection, BaseRuleOptions } from '../types/index.js'; export interface RuleConfig { /** Rule name (e.g., 'carbon/theme-use') */ ruleName: string; /** Default options for the rule */ defaultOptions: T; /** Function to load tokens for this rule */ tokenLoader: (options?: T) => CarbonToken[] | TokenCollection; /** Optional function to check if a value should be skipped before validation */ shouldSkipValue?: (value: string, prop: string) => boolean; /** Optional function to extract tokens from TokenCollection */ extractTokens?: (tokens: CarbonToken[] | TokenCollection) => CarbonToken[]; } /** * Create a Carbon token validation rule with standard behavior */ export declare function createCarbonRule(config: RuleConfig): stylelint.Plugin; //# sourceMappingURL=create-rule.d.ts.map