import { MMLColor } from "../color"; export type AttributeHandlerMap = { [key: string]: (instance: T, newValue: string | null) => void; }; export declare class AttributeHandler { private map; constructor(map: AttributeHandlerMap); getAttributes(): string[]; handle(instance: T, name: string, newValue: string): boolean; } export declare function parseColorAttribute(value: string | null, defaultValue: null): MMLColor | null; export declare function parseColorAttribute(value: string | null, defaultValue: MMLColor): MMLColor; export declare function parseAttribute(value: string | null, defaultValue: T, parser: (value: string) => T | null): T; export declare function floatParser(value: string): number | null; export declare function boolParser(value: string): boolean | null; export declare function parseFloatAttribute(value: string | null, defaultValue: null): number | null; export declare function parseFloatAttribute(value: string | null, defaultValue: number): number; export declare function parseBoolAttribute(value: string | null, defaultValue: boolean): boolean; export declare function parseEnumAttribute(value: string | null, enumValues: Record, defaultValue: T): T; //# sourceMappingURL=attribute-handling.d.ts.map