import type { FC, ReactNode } from "react"; import type { SidebarLinksGroupLink } from "./types"; import { type IconComponentType } from "../../../Icons"; type SidebarLinksGroupBaseProps = { /** * The ID of the `SidebarLinksGroup`. */ id?: string; /** @ignore */ className?: string; /** * The links of the `SidebarLinksGroup`. */ links: SidebarLinksGroupLink[]; }; export type StaticSidebarLinksGroupProps = SidebarLinksGroupBaseProps & { title?: never; icon?: never; initialIsOpen?: never; onGroupToggle?: never; }; export type CollapsibleSidebarLinksGroupProps = SidebarLinksGroupBaseProps & { /** * The title of the `SidebarLinksGroup`. */ title: ReactNode; /** * The icon of the `SidebarLinksGroup`. */ icon: IconComponentType; /** * Define whether the `SidebarLinksGroup` should be open. */ initialIsOpen?: boolean; /** * The callback function that is called when the `SidebarLinksGroup` is toggled. */ onGroupToggle?: (open: boolean) => void; }; export type SidebarLinksGroupProps = StaticSidebarLinksGroupProps | CollapsibleSidebarLinksGroupProps; export declare const SidebarLinksGroup: FC; export {};