@redocly/theme
Version:
Shared UI components lib
10 lines (9 loc) • 565 B
TypeScript
import type { CodeWalkthroughFile, CodeWalkthroughStepAttr, CodeWalkthroughAttr } from '@redocly/config';
import { type WalkthroughControlsState, type WalkthroughStepsState } from '../../../core/hooks';
export type WalkthroughState = {
stepsState: WalkthroughStepsState;
controlsState: WalkthroughControlsState;
downloadAssociatedFiles: CodeWalkthroughFile[];
files: CodeWalkthroughFile[];
};
export declare function useCodeWalkthrough(steps: CodeWalkthroughStepAttr[], attributes: Omit<CodeWalkthroughAttr, 'steps' | 'preview'>): WalkthroughState;