-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
146 lines (125 loc) · 3.89 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
// Type definitions for Spectacle 6.0.0
// Project: Formidable Spectacle
// Definitions by: Kylie Stewart and Carlos Kelly
declare module 'spectacle' {
import * as React from 'react';
import * as StyledSystem from 'styled-system';
export type TemplateFn = (options: {
numberOfSlides: number;
currentSlide: number;
}) => React.ReactNode;
export type TransitionEffect =
| {
enter: Record<string, number | string>;
from: Record<string, number | string>;
leave: Record<string, number | string>;
config: Record<string, number | string>;
}
| 'fade'
| 'slide'
| 'none';
export const Deck: React.FC<{
children: React.ReactNode;
animationsWhenGoingBack?: boolean;
backgroundColor?: string;
keyboardControls?: 'arrows' | 'space';
loop?: boolean;
theme?: Record<string, any>;
textColor?: string;
template?: TemplateFn;
transitionEffect?: TransitionEffect;
}>;
export const Slide: React.FC<{
backgroundColor?: string;
backgroundImage?: string;
backgroundOpacity?: number;
backgroundPosition?: string;
backgroundRepeat?: string;
backgroundSize?: string;
children: React.ReactNode;
scaleRatio?: number;
textColor?: string;
template?: TemplateFn;
transitionEffect?: TransitionEffect;
}>;
export const Appear: React.FC<{
children: React.ReactNode;
elementNum: number;
transitionEffect: {
to: Record<string, number | string>;
from: Record<string, number | string>;
};
}>;
export const CodePane: React.FC<{
children: React.ReactNode;
autoFillHeight: boolean;
fontSize?: number;
language: string;
theme?: {
plain: Record<string, string>;
styles: Array<{ types: Array<string>; style: Record<string, string> }>;
};
highlightStart?: number;
highlightEnd?: number;
indentSize?: number;
}>;
export const Stepper: React.FC<{
children: (value: any, step: number) => React.ReactNode;
values: any[];
defaultValue?: any;
}>;
type TypographyProps = {
children: React.ReactNode;
} & StyledSystem.ColorProps &
StyledSystem.TypographyProps &
StyledSystem.SpaceProps;
export const Text: React.FC<TypographyProps>;
export const CodeSpan: React.FC<TypographyProps>;
export const Heading: React.FC<TypographyProps>;
export const ListItem: React.FC<TypographyProps>;
export const Quote: React.FC<TypographyProps>;
export const OrderedList: React.FC<TypographyProps>;
export const UnorderedList: React.FC<TypographyProps>;
export const Link: React.FC<TypographyProps & React.AnchorHTMLAttributes<{}>>;
type BoxProps = {
children: React.ReactNode;
} & StyledSystem.ColorProps &
StyledSystem.SpaceProps &
StyledSystem.LayoutProps &
StyledSystem.PositionProps &
StyledSystem.BorderProps;
export const Box: React.FC<BoxProps>;
export const FlexBox: React.FC<BoxProps & StyledSystem.FlexProps>;
export const Grid: React.FC<{
children: React.ReactNode;
} & StyledSystem.LayoutProps &
StyledSystem.GridProps &
StyledSystem.PositionProps>;
export const Image: React.FC<React.ImgHTMLAttributes<{}> &
StyledSystem.LayoutProps &
StyledSystem.PositionProps>;
export const FullSizeImage: React.FC<React.ImgHTMLAttributes<{}> &
StyledSystem.LayoutProps &
StyledSystem.PositionProps>;
export const Notes: React.FC<{
children: React.ReactNode;
}>;
export const Progress: React.FC<{
color: string;
size: number;
}>;
export const FullScreen: React.FC<{
color: string;
size: number;
}>;
export const Markdown: React.FC<{
children: React.ReactNode;
containsSlides?: boolean;
}>;
export const SpectacleLogo: React.FC<{
size: number;
}>;
export const mdxComponentMap: Record<string, JSX.Element>;
export const isolateNotes: (content: string) => string;
export const remoteNotes: (content: string) => string;
}