import type { ElementClass, ElementStyle, StylingAttrs } from "./types.js"; /** * Helper for the wave-3 `as=`/`dynamic()` element migration: resolve `class` / `style` * from a Base UI component's `props` against the live state accessor and * return a plain object with reactive getters suitable for `mergeRootProps`. * * Both keys may be raw values OR functions of state — the functions are * called inside the getter so they re-run on every reactive dependency * change. Returning `undefined` is fine; `mergeRootProps` treats undefined * as "absent" so internal defaults still win. */ export interface ClassStyleSource { class?: ElementClass | ((state: State) => ElementClass) | undefined; style?: ElementStyle | ((state: State) => ElementStyle) | undefined; attrs?: StylingAttrs | ((state: State) => StylingAttrs | undefined) | undefined; } export declare function resolveClassStyle(props: ClassStyleSource, getState: () => State): { class: ElementClass; style: ElementStyle; "data-style-src": string | undefined; }; //# sourceMappingURL=resolve-class-style.d.ts.map