@redocly/theme
Version:
Shared UI components lib
14 lines (13 loc) • 510 B
TypeScript
import type { CodeWalkthroughStepAttr } from '@redocly/config';
import type { WalkthroughStepsState } from '../../types/code-walkthrough';
type CodeWalkthroughStep = CodeWalkthroughStepAttr & {
compRef?: HTMLElement;
markerRef?: HTMLElement;
};
type Params = {
steps: CodeWalkthroughStep[];
enableDeepLink: boolean;
root: React.RefObject<HTMLDivElement | null>;
};
export declare function useCodeWalkthroughSteps({ steps, enableDeepLink, root, }: Params): WalkthroughStepsState;
export {};