import * as _zag_js_anatomy0 from "@zag-js/anatomy"; import * as _zag_js_core0 from "@zag-js/core"; import { EventObject, Machine, Service } from "@zag-js/core"; import { CommonProperties, NormalizeProps, PropTypes, RequiredBy } from "@zag-js/types"; //#region src/accordion.anatomy.d.ts declare const anatomy: _zag_js_anatomy0.AnatomyInstance<"root" | "item" | "itemTrigger" | "itemContent">; declare const parts: Record<"root" | "item" | "itemTrigger" | "itemContent", _zag_js_anatomy0.AnatomyPart>; //#endregion //#region src/accordion.types.d.ts interface ValueChangeDetails { value: string[]; } type ElementIds = Partial<{ root: string; item: (value: string) => string; itemContent: (value: string) => string; itemTrigger: (value: string) => string; }>; interface AccordionProps extends CommonProperties { ids?: ElementIds | undefined; multiple?: boolean | undefined; value?: string[] | undefined; defaultValue?: string[] | undefined; onValueChange?: ((details: ValueChangeDetails) => void) | undefined; } type PropsWithDefault = 'multiple'; interface AccordionSchema { state: 'idle' | 'focused'; props: RequiredBy; context: { value: string[]; }; action: string; guard: string; effect: string; event: EventObject; } type AccordionService = Service; type AccordionMachine = Machine; interface ItemProps { value: string; } interface ItemState { expanded: boolean; } interface AccordionApi { focused: boolean; value: string[]; setValue: (value: string[]) => void; getItemState: (props: ItemProps) => ItemState; show: (value: string) => void; hide: (value: string) => void; toggle: (value: string) => void; getRootProps: () => T['element']; getItemProps: (props: ItemProps) => T['element']; getItemTriggerProps: (props: ItemProps) => T['button']; getItemContentProps: (props: ItemProps) => T['element']; } //#endregion //#region src/accordion.connect.d.ts declare function connect(service: Service, normalize: NormalizeProps): AccordionApi; //#endregion //#region src/accordion.machine.d.ts declare const machine: _zag_js_core0.Machine; //#endregion //#region src/accordion.props.d.ts declare const props: (keyof AccordionProps)[]; declare const splitProps: >(props: Props) => [Partial, Omit]; declare const itemProps: "value"[]; declare const splitItemProps: (props: Props) => [ItemProps, Omit]; //#endregion export { type AccordionApi as Api, type ElementIds, type ItemProps, type ItemState, type AccordionMachine as Machine, type AccordionProps as Props, type AccordionService as Service, type ValueChangeDetails, anatomy, connect, itemProps, machine, parts, props, splitItemProps, splitProps }; //# sourceMappingURL=index.d.mts.map