import type { ComponentInfo, PaletteInfo, StyleInfo } from './data.js'; import { type Finding, type LintCustomProperty, type LintElement } from './element.js'; /** ``: a value outside the closed union of the prop. */ export declare const validAttributeValues: (element: LintElement, component: ComponentInfo) => Finding[]; /** `disabled="false"`: the attribute is there, so the boolean is not reliably off. */ export declare const noFalseBoolean: (element: LintElement, component: ComponentInfo) => Finding[]; /** * ``: a deprecated prop, which goes in the next major. The message is the * `@deprecated` text of the prop, which says what to use instead. */ export declare const noDeprecated: (element: LintElement, component: ComponentInfo) => Finding[]; /** * An icon-only control without a name, and an image without alt. A component that takes an * icon next to a label or a default slot is icon-only when it shows the icon alone; without * `label` or `aria-label` it is announced by the icon's slug, or not at all. An image without * `alt` is named after its file. An element with an `id` may be named from outside, by an * `mds-tooltip relation="label"` or an `aria-labelledby` elsewhere, which a check of one * element cannot see: it is left alone. */ export declare const accessibleName: (element: LintElement, component: ComponentInfo) => Finding[]; /** `dark:hover:!bg-white/50` -> `bg-white`: no variants, no important, no opacity. */ export declare const utilityOf: (name: string) => string; /** * What is wrong with the class `name`, undefined when it does not paint with a raw palette. * Shared by the ESLint and the Stylelint rule. */ export declare const rawPaletteMessage: (name: string, palette: PaletteInfo) => string | undefined; /** A colour class that paints the interface with a raw palette instead of a role. */ export declare const noRawPaletteClasses: (element: LintElement, palette: PaletteInfo) => Finding[]; /** * What is wrong with setting or reading the custom property `name`, undefined when a * component promises it. Shared by the ESLint and the Stylelint rule. */ export declare const internalTokenMessage: (name: string, style: StyleInfo | undefined) => string | undefined; /** * The `--mds-*` names a class sets or reads through Tailwind, read through its variants and * `!` as `utilityOf` reads them: an arbitrary property (`dark:[--mds-x:red]`, also on a parent * that sets it for its descendants) or an arbitrary value (`bg-[var(--mds-x)]`, `bg-(--mds-x)`). */ export declare const classCustomPropertiesOf: (element: LintElement) => LintCustomProperty[]; /** * `style="--mds-chip-icon-color: ..."`, `class="[--mds-chip-icon-color:red]"`: an `--mds-*` * that no component promises, in every form the template writes one. */ export declare const noInternalTokens: (element: LintElement, styles: Map) => Finding[];