import type { LabelHTMLAttributes } from "react";
export type UseLabelProps = {
id?: string | undefined;
label?: string | undefined;
"aria-label"?: string | undefined;
"aria-labelledby"?: string | undefined;
labelElementType?: "label" | "span" | undefined;
};
export type UseLabelReturn = {
labelProps: {
id?: string | undefined;
} & LabelHTMLAttributes;
fieldProps: LabellingProps;
};
export type LabellingProps = {
id?: string | undefined;
"aria-label"?: string | undefined;
"aria-labelledby"?: string | undefined;
"aria-describedby"?: string | undefined;
"aria-details"?: string | undefined;
};
export declare function useLabel({ id: providedId, label, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, labelElementType }: UseLabelProps): {
labelProps: {
id?: string | undefined;
} & LabelHTMLAttributes;
fieldProps: LabellingProps;
};