-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
33 lines (33 loc) · 930 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import React, { ReactNode } from 'react';
type Step = {
id: string;
content: string;
note?: any;
};
type OnboardingState = {
currentStepIndex: number;
steps: Step[];
isActive: boolean;
isCompleted: boolean;
};
type OnboardingContextType = {
state: OnboardingState;
nextStep: () => void;
prevStep: () => void;
complete: () => void;
reset: () => void;
setActive: (isActive: boolean) => void;
};
export declare const OnboardingProvider: React.FC<{
children: ReactNode;
steps: Step[];
}>;
export declare const useOnboarding: () => OnboardingContextType;
export declare const OnboardingStep: React.FC<{
stepIndex: number;
children: ReactNode;
}>;
export declare const OnboardingTooltip: React.FC;
export declare const syncOnboardingState: (serverState: Partial<OnboardingState>) => void;
export declare const shouldStartOnboarding: (user: any) => boolean;
export {};