forked from tech-conferences/confs.tech
-
Notifications
You must be signed in to change notification settings - Fork 0
/
algolia.d.ts
97 lines (86 loc) · 2.87 KB
/
algolia.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
declare module 'react-instantsearch/connectors' {
import * as React from 'react';
interface Connector {
(component: any): any;
}
export const connectConfigure: Connector;
export const connectCurrentRefinements: Connector;
export const connectHierarchicalMenu: Connector;
export const connectHighlight: Connector;
export const connectHits: Connector;
export const connectAutoComplete: Connector;
export const connectHitsPerPage: Connector;
export const connectInfiniteHits: Connector;
export const connectMenu: Connector;
export const connectNumericMenu: Connector;
export const connectPagination: Connector;
export const connectPoweredBy: Connector;
export const connectRange: Connector;
export const connectRefinementList: Connector;
export const connectScrollTo: Connector;
export const connectBreadcrumb: Connector;
export const connectSearchBox: Connector;
export const connectSortBy: Connector;
export const connectStats: Connector;
export const connectToggleRefinement: Connector;
export const connectStateResults: Connector;
}
declare module 'react-instantsearch/dom' {
import * as React from 'react';
export const InstantSearch: any;
export const Index: any;
export const Configure: any;
export const CurrentRefinements: any;
export const HierarchicalMenu: any;
export const Highlight: any;
export const Snippet: any;
export const Hits: any;
export const HitsPerPage: any;
export const InfiniteHits: any;
export const Menu: any;
export const MenuSelect: any;
export const NumericMenu: any;
export const Pagination: any;
export const PoweredBy: any;
export const RangeInput: any;
export const RangeSlider: any;
export const RatingMenu: any;
export const RefinementList: any;
export const ClearRefinements: any;
export const ScrollTo: any;
export const SearchBox: any;
export const SortBy: any;
export const Stats: any;
export const ToggleRefinement: any;
export const Panel: any;
export const Breadcrumb: any;
}
declare module 'react-instantsearch/native' {
import * as React from 'react';
export const InstantSearch: React.Component;
export const Index: React.Component;
export const Configure: React.Component;
}
declare module 'react-instantsearch/server' {
import * as React from 'react';
export type resultsState = Object | any[];
export interface root {
Root: string | ((...args: any[]) => any);
props?: Object;
}
export interface props {
algoliaClient?: Object;
appId?: string;
apiKey?: string;
children?: React.ReactNode[] | React.ReactNode;
indexName: string;
createURL?: (...args: any[]) => any;
searchState?: Object;
refresh: boolean;
onSearchStateChange?: (...args: any[]) => any;
onSearchParameters?: (...args: any[]) => any;
resultsState?: resultsState;
root?: root;
}
type CreateInstantSearch = React.SFC<props>;
}