import { FieldsetHTMLAttributes, HTMLAttributes, MaybeRef, ComputedRef, Ref } from 'vue';
import { Booleanish } from 'node_modules/@zag-js/dom-query/dist/types.d.mts';
export interface UseFieldsetProps {
/**
* The id of the fieldset.
*/
id?: string;
/**
* Indicates whether the fieldset is disabled.
*/
disabled?: boolean | 'true' | 'false';
/**
* Indicates whether the fieldset is invalid.
*/
invalid?: boolean;
}
export type UseFieldsetReturn = ReturnType;
export declare const useFieldset: (props?: MaybeRef) => ComputedRef<{
refs: {
rootRef: Ref;
};
ids: {
legend: string;
errorText: string;
helperText: string;
};
disabled: boolean | "false" | "true" | undefined;
invalid: boolean | undefined;
getRootProps: () => FieldsetHTMLAttributes;
getLegendProps: () => {
'data-disabled': Booleanish;
'data-invalid': Booleanish;
"data-scope": string;
"data-part": string;
id: string;
};
getHelperTextProps: () => {
"data-scope": string;
"data-part": string;
id: string;
};
getErrorTextProps: () => HTMLAttributes;
}>;