declare const unslugName: (name: string) => string; declare const setAttributeIfEmpty: (element: HTMLElement, attribute: string, value: string) => string; declare const removeAttributesIf: (element: HTMLElement, attribute: string, valueCheck: string | undefined, cleanAttributes: string | string[]) => boolean; declare const ifAttribute: (element: HTMLElement, attribute: string, valueCheck?: string) => boolean; /** * Adds an id to an IDREF list attribute (`aria-describedby`, `aria-labelledby`, ...), keeping the * ids already there: a description of someone else's stays next to ours. */ declare const addIdRef: (element: Element, attribute: string, id: string) => void; /** Takes an id back out of an IDREF list attribute, dropping the attribute once it is empty. */ declare const removeIdRef: (element: Element, attribute: string, id: string) => void; declare const hashValue: (value: string) => string; declare const hashRandomValue: (value?: string) => string; /** * What the `current` of a button says (#1264): 'page' is the view the button leads to, the one you * are in; 'section' is a view inside it, a record of its list. The attribute alone (an empty * string), `true` and any other value are the view itself; `false`, the string "false" (a * reflected attribute keeps it) and no value mark nothing. */ declare const currentOf: (value: unknown) => "page" | "section" | undefined; export { addIdRef, currentOf, hashRandomValue, hashValue, removeAttributesIf, setAttributeIfEmpty, ifAttribute, removeIdRef, unslugName, };