/** * @license * * Copyright IBM Corp. 2025 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React, { PropsWithChildren } from 'react'; interface iToc extends PropsWithChildren { children: React.ReactNode; } declare enum TocActionType { ADD = "add", REMOVE = "remove", RESET = "reset" } interface TocAction { type: `${TocActionType}`; payload: number; } interface iTocContext { activeIds: number[]; scrollToSectionIndex: number; scrollToSection: (idx: number) => void; dispatch: React.Dispatch; } declare const Toc: React.ForwardRefExoticComponent>; declare const useToc: () => iTocContext; export { Toc, useToc };