UNPKG

1.15 kBTypeScriptView Raw
1import { DuoyunVisibleBaseElement } from './base/visible';
2import './card';
3import './paragraph';
4import './button';
5export declare type Tour = {
6 title: string;
7 description: string;
8 before?: () => Promise<void> | void;
9 preview?: string;
10 finishText?: string;
11 finish?: () => Promise<void> | void;
12 skip?: () => Promise<void> | void;
13 maskClosable?: boolean;
14};
15declare type Store = {
16 currentIndex: number;
17 opened: boolean;
18};
19export declare function openTour(currentIndex?: number): Promise<void>;
20export declare function setTours(tours: Tour[] | Record<number, Tour>, options?: Partial<Store>): Promise<void>;
21/**
22 * parent element must is relative position
23 *
24 * @customElement dy-coach-mark
25 * @attr index
26 * @attr width
27 * @attr size
28 * @attr color
29 */
30export declare class DuoyunCoachMarkElement extends DuoyunVisibleBaseElement {
31 #private;
32 index: number;
33 width: string;
34 size: 'small' | 'medium' | 'large';
35 color: string;
36 constructor();
37 mounted: () => void;
38 render: () => import("lit-html/lib/template-result").TemplateResult;
39}
40export {};
41//# sourceMappingURL=coach-mark.d.ts.map
\No newline at end of file