@sybil-studio-devs/sdk 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,235 @@
1
+ import * as react from 'react';
2
+ import { c as EmbedTheme, h as Page, C as CreatePageParams, U as UpdatePageParams, B as Block } from '../client-BPFcAPV8.mjs';
3
+ import { A as AtlasTheme, g as AtlasFeatures, h as AtlasLoggingConfig, k as AtlasInstance, a as AtlasPage, j as AtlasError, d as AtlasSidebarData, C as CreateAtlasPageParams, U as UpdateAtlasPageParams, i as AtlasLogEntry } from '../types-BjxgQxBW.mjs';
4
+ import { N as NexusTheme, j as NexusFeatures, k as NexusLoggingConfig, n as NexusInstance, a as NexusFile, b as NexusFolder, c as NexusItem, m as NexusError, d as NexusBreadcrumb, e as NexusFolderTree, h as NexusStats, f as NexusActivity, g as NexusLabel, l as NexusLogEntry } from '../types-DVY5_vpY.mjs';
5
+
6
+ interface SybilPagesProps {
7
+ apiKey: string;
8
+ pageId: string;
9
+ baseUrl?: string;
10
+ theme?: 'light' | 'dark' | EmbedTheme;
11
+ readOnly?: boolean;
12
+ toolbar?: boolean;
13
+ minHeight?: string;
14
+ maxHeight?: string;
15
+ className?: string;
16
+ style?: React.CSSProperties;
17
+ onReady?: () => void;
18
+ onChange?: (blocks: any[]) => void;
19
+ onSave?: () => void;
20
+ onError?: (error: Error) => void;
21
+ }
22
+ interface SybilPagesRef {
23
+ getContent: () => Promise<any[]>;
24
+ setContent: (blocks: any[]) => void;
25
+ }
26
+ declare const SybilPages: react.ForwardRefExoticComponent<SybilPagesProps & react.RefAttributes<SybilPagesRef>>;
27
+
28
+ interface SybilAtlasProps {
29
+ apiKey: string;
30
+ workspaceId: string;
31
+ baseUrl?: string;
32
+ theme?: 'light' | 'dark' | AtlasTheme;
33
+ showSidebar?: boolean;
34
+ sidebarWidth?: number;
35
+ sidebarCollapsible?: boolean;
36
+ readOnly?: boolean;
37
+ defaultPageId?: string;
38
+ allowCreate?: boolean;
39
+ allowDelete?: boolean;
40
+ allowExport?: boolean;
41
+ features?: AtlasFeatures;
42
+ logging?: AtlasLoggingConfig;
43
+ className?: string;
44
+ style?: React.CSSProperties;
45
+ onReady?: (instance: AtlasInstance) => void;
46
+ onPageChange?: (page: AtlasPage) => void;
47
+ onPageCreate?: (page: AtlasPage) => void;
48
+ onPageDelete?: (pageId: string) => void;
49
+ onPageUpdate?: (page: AtlasPage) => void;
50
+ onError?: (error: AtlasError) => void;
51
+ onNavigate?: (pageId: string) => void;
52
+ }
53
+ interface SybilAtlasRef {
54
+ getPages: () => Promise<AtlasSidebarData>;
55
+ getPage: (pageId: string) => Promise<AtlasPage>;
56
+ createPage: (params?: CreateAtlasPageParams) => Promise<AtlasPage>;
57
+ updatePage: (pageId: string, params: UpdateAtlasPageParams) => Promise<AtlasPage>;
58
+ deletePage: (pageId: string) => Promise<void>;
59
+ navigateTo: (pageId: string) => void;
60
+ getCurrentPage: () => AtlasPage | null;
61
+ exportPage: (pageId: string, format: 'pdf' | 'docx' | 'md') => Promise<Blob>;
62
+ toggleSidebar: () => void;
63
+ setSidebarWidth: (width: number) => void;
64
+ setTheme: (theme: 'light' | 'dark' | AtlasTheme) => void;
65
+ refresh: () => Promise<void>;
66
+ getLogs: () => AtlasLogEntry[];
67
+ clearLogs: () => void;
68
+ }
69
+ declare const SybilAtlas: react.ForwardRefExoticComponent<SybilAtlasProps & react.RefAttributes<SybilAtlasRef>>;
70
+
71
+ interface SybilNexusProps {
72
+ apiKey: string;
73
+ workspaceId: string;
74
+ baseUrl?: string;
75
+ theme?: 'light' | 'dark' | NexusTheme;
76
+ initialFolderId?: string | null;
77
+ viewMode?: 'list' | 'grid';
78
+ showSidebar?: boolean;
79
+ showActivityFeed?: boolean;
80
+ showBreadcrumbs?: boolean;
81
+ showSearch?: boolean;
82
+ allowUpload?: boolean;
83
+ allowDownload?: boolean;
84
+ allowDelete?: boolean;
85
+ allowMove?: boolean;
86
+ allowRename?: boolean;
87
+ allowCreateFolder?: boolean;
88
+ allowMultiSelect?: boolean;
89
+ maxUploadSize?: number;
90
+ acceptedFileTypes?: string[];
91
+ features?: NexusFeatures;
92
+ logging?: NexusLoggingConfig;
93
+ className?: string;
94
+ style?: React.CSSProperties;
95
+ onReady?: (instance: NexusInstance) => void;
96
+ onNavigate?: (folderId: string | null) => void;
97
+ onFileSelect?: (file: NexusFile) => void;
98
+ onFileOpen?: (file: NexusFile) => void;
99
+ onFileUpload?: (file: NexusFile) => void;
100
+ onFileDelete?: (fileId: string) => void;
101
+ onFolderCreate?: (folder: NexusFolder) => void;
102
+ onFolderDelete?: (folderId: string) => void;
103
+ onSelectionChange?: (items: NexusItem[]) => void;
104
+ onError?: (error: NexusError) => void;
105
+ }
106
+ interface SybilNexusRef {
107
+ getFiles: (folderId?: string | null) => Promise<NexusItem[]>;
108
+ getFolders: (parentId?: string | null) => Promise<NexusFolder[]>;
109
+ getFolderContents: (folderId?: string | null) => Promise<{
110
+ items: NexusItem[];
111
+ breadcrumb: NexusBreadcrumb[];
112
+ }>;
113
+ getFolderTree: () => Promise<NexusFolderTree[]>;
114
+ getFile: (fileId: string) => Promise<NexusFile>;
115
+ getFolder: (folderId: string) => Promise<NexusFolder & {
116
+ breadcrumb: NexusBreadcrumb[];
117
+ }>;
118
+ uploadFile: (file: File, folderId?: string | null, onProgress?: (progress: number) => void) => Promise<NexusFile>;
119
+ uploadFiles: (files: File[], folderId?: string | null, onProgress?: (fileIndex: number, progress: number) => void) => Promise<NexusFile[]>;
120
+ downloadFile: (fileId: string) => Promise<Blob>;
121
+ getDownloadUrl: (fileId: string) => Promise<string>;
122
+ deleteFile: (fileId: string) => Promise<void>;
123
+ deleteFiles: (fileIds: string[]) => Promise<void>;
124
+ moveFile: (fileId: string, targetFolderId: string | null) => Promise<NexusFile>;
125
+ renameFile: (fileId: string, newName: string) => Promise<NexusFile>;
126
+ starFile: (fileId: string, starred: boolean) => Promise<NexusFile>;
127
+ createFolder: (name: string, parentId?: string | null, options?: {
128
+ color?: string;
129
+ icon?: string;
130
+ }) => Promise<NexusFolder>;
131
+ deleteFolder: (folderId: string) => Promise<void>;
132
+ moveFolder: (folderId: string, targetParentId: string | null) => Promise<NexusFolder>;
133
+ renameFolder: (folderId: string, newName: string) => Promise<NexusFolder>;
134
+ navigateTo: (folderId: string | null) => void;
135
+ getCurrentFolder: () => string | null;
136
+ getSelection: () => NexusItem[];
137
+ setSelection: (itemIds: string[]) => void;
138
+ clearSelection: () => void;
139
+ selectAll: () => void;
140
+ setViewMode: (mode: 'list' | 'grid') => void;
141
+ toggleActivityFeed: () => void;
142
+ toggleSidebar: () => void;
143
+ refresh: () => Promise<void>;
144
+ search: (query: string) => Promise<NexusItem[]>;
145
+ getStats: () => Promise<NexusStats>;
146
+ getActivity: (limit?: number) => Promise<NexusActivity[]>;
147
+ getLabels: () => Promise<NexusLabel[]>;
148
+ applyLabel: (itemIds: string[], labelId: string) => Promise<void>;
149
+ removeLabel: (itemIds: string[], labelId: string) => Promise<void>;
150
+ setTheme: (theme: 'light' | 'dark' | NexusTheme) => void;
151
+ getLogs: () => NexusLogEntry[];
152
+ clearLogs: () => void;
153
+ }
154
+ declare const SybilNexus: react.ForwardRefExoticComponent<SybilNexusProps & react.RefAttributes<SybilNexusRef>>;
155
+
156
+ interface UseSybilPagesOptions {
157
+ apiKey: string;
158
+ baseUrl?: string;
159
+ }
160
+ interface UseSybilPagesReturn {
161
+ page: Page | null;
162
+ loading: boolean;
163
+ saving: boolean;
164
+ error: Error | null;
165
+ fetchPage: (pageId: string) => Promise<void>;
166
+ createPage: (params?: CreatePageParams) => Promise<Page>;
167
+ updatePage: (pageId: string, params: UpdatePageParams) => Promise<Page>;
168
+ deletePage: (pageId: string) => Promise<void>;
169
+ setBlocks: (blocks: Block[]) => void;
170
+ save: () => Promise<void>;
171
+ }
172
+ declare function useSybilPages(options: UseSybilPagesOptions): UseSybilPagesReturn;
173
+
174
+ interface UseAtlasOptions {
175
+ apiKey: string;
176
+ workspaceId: string;
177
+ baseUrl?: string;
178
+ logging?: AtlasLoggingConfig;
179
+ }
180
+ interface UseAtlasReturn {
181
+ sidebar: AtlasSidebarData | null;
182
+ currentPage: AtlasPage | null;
183
+ loading: boolean;
184
+ saving: boolean;
185
+ error: Error | null;
186
+ fetchSidebar: () => Promise<AtlasSidebarData>;
187
+ fetchPage: (pageId: string) => Promise<AtlasPage>;
188
+ createPage: (params?: CreateAtlasPageParams) => Promise<AtlasPage>;
189
+ updatePage: (pageId: string, params: UpdateAtlasPageParams) => Promise<AtlasPage>;
190
+ deletePage: (pageId: string) => Promise<void>;
191
+ toggleFavorite: (pageId: string) => Promise<AtlasPage>;
192
+ exportPage: (pageId: string, format: 'pdf' | 'docx' | 'md') => Promise<Blob>;
193
+ setCurrentPage: (page: AtlasPage | null) => void;
194
+ getLogs: () => AtlasLogEntry[];
195
+ clearLogs: () => void;
196
+ }
197
+ declare function useAtlas(options: UseAtlasOptions): UseAtlasReturn;
198
+
199
+ interface UseNexusOptions {
200
+ apiKey: string;
201
+ workspaceId: string;
202
+ baseUrl?: string;
203
+ logging?: NexusLoggingConfig;
204
+ }
205
+ interface UseNexusReturn {
206
+ files: NexusFile[];
207
+ folders: NexusFolder[];
208
+ currentFolder: string | null;
209
+ breadcrumb: NexusBreadcrumb[];
210
+ loading: boolean;
211
+ uploading: boolean;
212
+ uploadProgress: number;
213
+ error: Error | null;
214
+ fetchFiles: (folderId?: string | null) => Promise<NexusFile[]>;
215
+ fetchFolders: (parentId?: string | null) => Promise<NexusFolder[]>;
216
+ fetchFolderContents: (folderId?: string | null) => Promise<{
217
+ items: NexusItem[];
218
+ breadcrumb: NexusBreadcrumb[];
219
+ }>;
220
+ getFile: (fileId: string) => Promise<NexusFile>;
221
+ uploadFile: (file: File, folderId?: string | null) => Promise<NexusFile>;
222
+ uploadFiles: (files: File[], folderId?: string | null) => Promise<NexusFile[]>;
223
+ deleteFile: (fileId: string) => Promise<void>;
224
+ createFolder: (name: string, parentId?: string | null) => Promise<NexusFolder>;
225
+ deleteFolder: (folderId: string) => Promise<void>;
226
+ navigateTo: (folderId: string | null) => void;
227
+ getStats: () => Promise<NexusStats>;
228
+ getActivity: (limit?: number) => Promise<NexusActivity[]>;
229
+ refresh: () => Promise<void>;
230
+ getLogs: () => NexusLogEntry[];
231
+ clearLogs: () => void;
232
+ }
233
+ declare function useNexus(options: UseNexusOptions): UseNexusReturn;
234
+
235
+ export { SybilAtlas, type SybilAtlasProps, type SybilAtlasRef, SybilNexus, type SybilNexusProps, type SybilNexusRef, SybilPages, type SybilPagesProps, type SybilPagesRef, type UseAtlasOptions, type UseAtlasReturn, type UseNexusOptions, type UseNexusReturn, useAtlas, useNexus, useSybilPages };
@@ -0,0 +1,235 @@
1
+ import * as react from 'react';
2
+ import { c as EmbedTheme, h as Page, C as CreatePageParams, U as UpdatePageParams, B as Block } from '../client-BPFcAPV8.js';
3
+ import { A as AtlasTheme, g as AtlasFeatures, h as AtlasLoggingConfig, k as AtlasInstance, a as AtlasPage, j as AtlasError, d as AtlasSidebarData, C as CreateAtlasPageParams, U as UpdateAtlasPageParams, i as AtlasLogEntry } from '../types-BjxgQxBW.js';
4
+ import { N as NexusTheme, j as NexusFeatures, k as NexusLoggingConfig, n as NexusInstance, a as NexusFile, b as NexusFolder, c as NexusItem, m as NexusError, d as NexusBreadcrumb, e as NexusFolderTree, h as NexusStats, f as NexusActivity, g as NexusLabel, l as NexusLogEntry } from '../types-DVY5_vpY.js';
5
+
6
+ interface SybilPagesProps {
7
+ apiKey: string;
8
+ pageId: string;
9
+ baseUrl?: string;
10
+ theme?: 'light' | 'dark' | EmbedTheme;
11
+ readOnly?: boolean;
12
+ toolbar?: boolean;
13
+ minHeight?: string;
14
+ maxHeight?: string;
15
+ className?: string;
16
+ style?: React.CSSProperties;
17
+ onReady?: () => void;
18
+ onChange?: (blocks: any[]) => void;
19
+ onSave?: () => void;
20
+ onError?: (error: Error) => void;
21
+ }
22
+ interface SybilPagesRef {
23
+ getContent: () => Promise<any[]>;
24
+ setContent: (blocks: any[]) => void;
25
+ }
26
+ declare const SybilPages: react.ForwardRefExoticComponent<SybilPagesProps & react.RefAttributes<SybilPagesRef>>;
27
+
28
+ interface SybilAtlasProps {
29
+ apiKey: string;
30
+ workspaceId: string;
31
+ baseUrl?: string;
32
+ theme?: 'light' | 'dark' | AtlasTheme;
33
+ showSidebar?: boolean;
34
+ sidebarWidth?: number;
35
+ sidebarCollapsible?: boolean;
36
+ readOnly?: boolean;
37
+ defaultPageId?: string;
38
+ allowCreate?: boolean;
39
+ allowDelete?: boolean;
40
+ allowExport?: boolean;
41
+ features?: AtlasFeatures;
42
+ logging?: AtlasLoggingConfig;
43
+ className?: string;
44
+ style?: React.CSSProperties;
45
+ onReady?: (instance: AtlasInstance) => void;
46
+ onPageChange?: (page: AtlasPage) => void;
47
+ onPageCreate?: (page: AtlasPage) => void;
48
+ onPageDelete?: (pageId: string) => void;
49
+ onPageUpdate?: (page: AtlasPage) => void;
50
+ onError?: (error: AtlasError) => void;
51
+ onNavigate?: (pageId: string) => void;
52
+ }
53
+ interface SybilAtlasRef {
54
+ getPages: () => Promise<AtlasSidebarData>;
55
+ getPage: (pageId: string) => Promise<AtlasPage>;
56
+ createPage: (params?: CreateAtlasPageParams) => Promise<AtlasPage>;
57
+ updatePage: (pageId: string, params: UpdateAtlasPageParams) => Promise<AtlasPage>;
58
+ deletePage: (pageId: string) => Promise<void>;
59
+ navigateTo: (pageId: string) => void;
60
+ getCurrentPage: () => AtlasPage | null;
61
+ exportPage: (pageId: string, format: 'pdf' | 'docx' | 'md') => Promise<Blob>;
62
+ toggleSidebar: () => void;
63
+ setSidebarWidth: (width: number) => void;
64
+ setTheme: (theme: 'light' | 'dark' | AtlasTheme) => void;
65
+ refresh: () => Promise<void>;
66
+ getLogs: () => AtlasLogEntry[];
67
+ clearLogs: () => void;
68
+ }
69
+ declare const SybilAtlas: react.ForwardRefExoticComponent<SybilAtlasProps & react.RefAttributes<SybilAtlasRef>>;
70
+
71
+ interface SybilNexusProps {
72
+ apiKey: string;
73
+ workspaceId: string;
74
+ baseUrl?: string;
75
+ theme?: 'light' | 'dark' | NexusTheme;
76
+ initialFolderId?: string | null;
77
+ viewMode?: 'list' | 'grid';
78
+ showSidebar?: boolean;
79
+ showActivityFeed?: boolean;
80
+ showBreadcrumbs?: boolean;
81
+ showSearch?: boolean;
82
+ allowUpload?: boolean;
83
+ allowDownload?: boolean;
84
+ allowDelete?: boolean;
85
+ allowMove?: boolean;
86
+ allowRename?: boolean;
87
+ allowCreateFolder?: boolean;
88
+ allowMultiSelect?: boolean;
89
+ maxUploadSize?: number;
90
+ acceptedFileTypes?: string[];
91
+ features?: NexusFeatures;
92
+ logging?: NexusLoggingConfig;
93
+ className?: string;
94
+ style?: React.CSSProperties;
95
+ onReady?: (instance: NexusInstance) => void;
96
+ onNavigate?: (folderId: string | null) => void;
97
+ onFileSelect?: (file: NexusFile) => void;
98
+ onFileOpen?: (file: NexusFile) => void;
99
+ onFileUpload?: (file: NexusFile) => void;
100
+ onFileDelete?: (fileId: string) => void;
101
+ onFolderCreate?: (folder: NexusFolder) => void;
102
+ onFolderDelete?: (folderId: string) => void;
103
+ onSelectionChange?: (items: NexusItem[]) => void;
104
+ onError?: (error: NexusError) => void;
105
+ }
106
+ interface SybilNexusRef {
107
+ getFiles: (folderId?: string | null) => Promise<NexusItem[]>;
108
+ getFolders: (parentId?: string | null) => Promise<NexusFolder[]>;
109
+ getFolderContents: (folderId?: string | null) => Promise<{
110
+ items: NexusItem[];
111
+ breadcrumb: NexusBreadcrumb[];
112
+ }>;
113
+ getFolderTree: () => Promise<NexusFolderTree[]>;
114
+ getFile: (fileId: string) => Promise<NexusFile>;
115
+ getFolder: (folderId: string) => Promise<NexusFolder & {
116
+ breadcrumb: NexusBreadcrumb[];
117
+ }>;
118
+ uploadFile: (file: File, folderId?: string | null, onProgress?: (progress: number) => void) => Promise<NexusFile>;
119
+ uploadFiles: (files: File[], folderId?: string | null, onProgress?: (fileIndex: number, progress: number) => void) => Promise<NexusFile[]>;
120
+ downloadFile: (fileId: string) => Promise<Blob>;
121
+ getDownloadUrl: (fileId: string) => Promise<string>;
122
+ deleteFile: (fileId: string) => Promise<void>;
123
+ deleteFiles: (fileIds: string[]) => Promise<void>;
124
+ moveFile: (fileId: string, targetFolderId: string | null) => Promise<NexusFile>;
125
+ renameFile: (fileId: string, newName: string) => Promise<NexusFile>;
126
+ starFile: (fileId: string, starred: boolean) => Promise<NexusFile>;
127
+ createFolder: (name: string, parentId?: string | null, options?: {
128
+ color?: string;
129
+ icon?: string;
130
+ }) => Promise<NexusFolder>;
131
+ deleteFolder: (folderId: string) => Promise<void>;
132
+ moveFolder: (folderId: string, targetParentId: string | null) => Promise<NexusFolder>;
133
+ renameFolder: (folderId: string, newName: string) => Promise<NexusFolder>;
134
+ navigateTo: (folderId: string | null) => void;
135
+ getCurrentFolder: () => string | null;
136
+ getSelection: () => NexusItem[];
137
+ setSelection: (itemIds: string[]) => void;
138
+ clearSelection: () => void;
139
+ selectAll: () => void;
140
+ setViewMode: (mode: 'list' | 'grid') => void;
141
+ toggleActivityFeed: () => void;
142
+ toggleSidebar: () => void;
143
+ refresh: () => Promise<void>;
144
+ search: (query: string) => Promise<NexusItem[]>;
145
+ getStats: () => Promise<NexusStats>;
146
+ getActivity: (limit?: number) => Promise<NexusActivity[]>;
147
+ getLabels: () => Promise<NexusLabel[]>;
148
+ applyLabel: (itemIds: string[], labelId: string) => Promise<void>;
149
+ removeLabel: (itemIds: string[], labelId: string) => Promise<void>;
150
+ setTheme: (theme: 'light' | 'dark' | NexusTheme) => void;
151
+ getLogs: () => NexusLogEntry[];
152
+ clearLogs: () => void;
153
+ }
154
+ declare const SybilNexus: react.ForwardRefExoticComponent<SybilNexusProps & react.RefAttributes<SybilNexusRef>>;
155
+
156
+ interface UseSybilPagesOptions {
157
+ apiKey: string;
158
+ baseUrl?: string;
159
+ }
160
+ interface UseSybilPagesReturn {
161
+ page: Page | null;
162
+ loading: boolean;
163
+ saving: boolean;
164
+ error: Error | null;
165
+ fetchPage: (pageId: string) => Promise<void>;
166
+ createPage: (params?: CreatePageParams) => Promise<Page>;
167
+ updatePage: (pageId: string, params: UpdatePageParams) => Promise<Page>;
168
+ deletePage: (pageId: string) => Promise<void>;
169
+ setBlocks: (blocks: Block[]) => void;
170
+ save: () => Promise<void>;
171
+ }
172
+ declare function useSybilPages(options: UseSybilPagesOptions): UseSybilPagesReturn;
173
+
174
+ interface UseAtlasOptions {
175
+ apiKey: string;
176
+ workspaceId: string;
177
+ baseUrl?: string;
178
+ logging?: AtlasLoggingConfig;
179
+ }
180
+ interface UseAtlasReturn {
181
+ sidebar: AtlasSidebarData | null;
182
+ currentPage: AtlasPage | null;
183
+ loading: boolean;
184
+ saving: boolean;
185
+ error: Error | null;
186
+ fetchSidebar: () => Promise<AtlasSidebarData>;
187
+ fetchPage: (pageId: string) => Promise<AtlasPage>;
188
+ createPage: (params?: CreateAtlasPageParams) => Promise<AtlasPage>;
189
+ updatePage: (pageId: string, params: UpdateAtlasPageParams) => Promise<AtlasPage>;
190
+ deletePage: (pageId: string) => Promise<void>;
191
+ toggleFavorite: (pageId: string) => Promise<AtlasPage>;
192
+ exportPage: (pageId: string, format: 'pdf' | 'docx' | 'md') => Promise<Blob>;
193
+ setCurrentPage: (page: AtlasPage | null) => void;
194
+ getLogs: () => AtlasLogEntry[];
195
+ clearLogs: () => void;
196
+ }
197
+ declare function useAtlas(options: UseAtlasOptions): UseAtlasReturn;
198
+
199
+ interface UseNexusOptions {
200
+ apiKey: string;
201
+ workspaceId: string;
202
+ baseUrl?: string;
203
+ logging?: NexusLoggingConfig;
204
+ }
205
+ interface UseNexusReturn {
206
+ files: NexusFile[];
207
+ folders: NexusFolder[];
208
+ currentFolder: string | null;
209
+ breadcrumb: NexusBreadcrumb[];
210
+ loading: boolean;
211
+ uploading: boolean;
212
+ uploadProgress: number;
213
+ error: Error | null;
214
+ fetchFiles: (folderId?: string | null) => Promise<NexusFile[]>;
215
+ fetchFolders: (parentId?: string | null) => Promise<NexusFolder[]>;
216
+ fetchFolderContents: (folderId?: string | null) => Promise<{
217
+ items: NexusItem[];
218
+ breadcrumb: NexusBreadcrumb[];
219
+ }>;
220
+ getFile: (fileId: string) => Promise<NexusFile>;
221
+ uploadFile: (file: File, folderId?: string | null) => Promise<NexusFile>;
222
+ uploadFiles: (files: File[], folderId?: string | null) => Promise<NexusFile[]>;
223
+ deleteFile: (fileId: string) => Promise<void>;
224
+ createFolder: (name: string, parentId?: string | null) => Promise<NexusFolder>;
225
+ deleteFolder: (folderId: string) => Promise<void>;
226
+ navigateTo: (folderId: string | null) => void;
227
+ getStats: () => Promise<NexusStats>;
228
+ getActivity: (limit?: number) => Promise<NexusActivity[]>;
229
+ refresh: () => Promise<void>;
230
+ getLogs: () => NexusLogEntry[];
231
+ clearLogs: () => void;
232
+ }
233
+ declare function useNexus(options: UseNexusOptions): UseNexusReturn;
234
+
235
+ export { SybilAtlas, type SybilAtlasProps, type SybilAtlasRef, SybilNexus, type SybilNexusProps, type SybilNexusRef, SybilPages, type SybilPagesProps, type SybilPagesRef, type UseAtlasOptions, type UseAtlasReturn, type UseNexusOptions, type UseNexusReturn, useAtlas, useNexus, useSybilPages };