import { Attr } from "@opticss/element-analysis"; import { ResolvedConfiguration } from "../configuration"; import { Attribute } from "./Attribute"; import { Block } from "./Block"; import { BlockClass } from "./BlockClass"; import { RulesetContainer } from "./RulesetContainer"; import { Style } from "./Style"; /** * AttrValue represents the value of an Attribute in a particular Block. * An Attribute can have many AttrValue children that are considered to * be mutually exclusive. Attributes can be designated as "global"; */ export declare class AttrValue extends Style { isGlobal: boolean; private _sourceAttributes; readonly rulesets: RulesetContainer; /** * AttrValue constructor. Provide a local name for this AttrValue, and the parent container. * @param name The local name for this AttrValue. * @param parent The parent Attribute of this AttrValue. */ constructor(name: string, parent: Attribute); protected get ChildConstructor(): never; newChild(): never; /** @returns The string value this AttrValue represents. */ get value(): string; /** @returns If this is the presence state. */ get isPresenceRule(): boolean; /** * Retrieve the Attribute that this AttrValue belongs to. * @returns The parent Attribute, or null. */ get attribute(): Attribute; /** * Retrieve the BlockClass that this AttrValue belongs to. * @returns The parent BlockClass, or null. */ get blockClass(): BlockClass; asSourceAttributes(): Attr[]; /** * Return the bare AttrValue name. * @returns String representing AttrValue. */ name(): string; /** * Export as original AttrValue name. * @param scope Optional scope to resolve this name relative to. If `true`, return the Block name instead of `:scope`. If a Block object, return with the local name instead of `:scope`. * @returns String representing original AttrValue path. */ asSource(scope?: Block | boolean): string; cssClass(config: ResolvedConfiguration, reservedClassNames: Set): string; /** * Return array self and all children. * @returns Array of Styles. */ all(): AttrValue[]; } export declare function isAttrValue(o: object): o is AttrValue; //# sourceMappingURL=AttrValue.d.ts.map