zudoku 0.0.0-fdfe742 → 0.0.0-feat-bundled-types.9aa135e

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.
Files changed (121) hide show
  1. package/dist/index.d.ts +6264 -11
  2. package/dist/lib/components/Bootstrap.d.ts +2 -2
  3. package/dist/lib/components/Bootstrap.js +2 -0
  4. package/dist/lib/components/Bootstrap.js.map +1 -1
  5. package/dist/lib/components/index.d.ts +726 -81
  6. package/dist/lib/hooks/index.d.ts +637 -22
  7. package/dist/lib/plugins/openapi/playground/BodyPanel.d.ts +5 -0
  8. package/dist/lib/plugins/openapi/playground/BodyPanel.js +22 -0
  9. package/dist/lib/plugins/openapi/playground/BodyPanel.js.map +1 -0
  10. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +2 -1
  11. package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
  12. package/dist/lib/plugins/openapi/playground/Headers.js +25 -25
  13. package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
  14. package/dist/lib/plugins/openapi/playground/IdentitySelector.js +1 -1
  15. package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -1
  16. package/dist/lib/plugins/openapi/playground/ParamsGrid.js +2 -2
  17. package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -1
  18. package/dist/lib/plugins/openapi/playground/PathParams.js +1 -1
  19. package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
  20. package/dist/lib/plugins/openapi/playground/Playground.d.ts +3 -8
  21. package/dist/lib/plugins/openapi/playground/Playground.js +70 -65
  22. package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
  23. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
  24. package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
  25. package/dist/lib/plugins/openapi/playground/QueryParams.js +1 -1
  26. package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
  27. package/dist/lib/plugins/openapi/playground/fileUtils.d.ts +2 -0
  28. package/dist/lib/plugins/openapi/playground/fileUtils.js +22 -0
  29. package/dist/lib/plugins/openapi/playground/fileUtils.js.map +1 -0
  30. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +4 -1
  31. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +29 -20
  32. package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
  33. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +2 -2
  34. package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
  35. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.d.ts +16 -0
  36. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js +10 -0
  37. package/dist/lib/plugins/openapi/playground/useRememberSkipLoginDialog.js.map +1 -0
  38. package/dist/lib/ui/CodeBlock.js +1 -1
  39. package/dist/lib/ui/CodeBlock.js.map +1 -1
  40. package/dist/lib/ui/Dialog.d.ts +3 -1
  41. package/dist/lib/ui/Dialog.js +2 -2
  42. package/dist/lib/ui/Dialog.js.map +1 -1
  43. package/dist/lib/util/humanFileSize.d.ts +6 -0
  44. package/dist/lib/util/humanFileSize.js +14 -0
  45. package/dist/lib/util/humanFileSize.js.map +1 -0
  46. package/dist/lib/util/humanFileSize.test.d.ts +1 -0
  47. package/dist/lib/util/humanFileSize.test.js +22 -0
  48. package/dist/lib/util/humanFileSize.test.js.map +1 -0
  49. package/lib/{Callout-CvY02DXU.js → Callout-CoVxYafP.js} +2 -2
  50. package/lib/{Callout-CvY02DXU.js.map → Callout-CoVxYafP.js.map} +1 -1
  51. package/lib/{Dialog-B53OMCvW.js → Dialog-BxpuVLh9.js} +25 -25
  52. package/lib/Dialog-BxpuVLh9.js.map +1 -0
  53. package/lib/{Markdown-m03c-TR_.js → Markdown-Cm4kj26S.js} +3 -2
  54. package/lib/{Markdown-m03c-TR_.js.map → Markdown-Cm4kj26S.js.map} +1 -1
  55. package/lib/{MdxPage-Dy5JAci3.js → MdxPage-fDGQtB5w.js} +3 -3
  56. package/lib/{MdxPage-Dy5JAci3.js.map → MdxPage-fDGQtB5w.js.map} +1 -1
  57. package/lib/{OasProvider-DfTncecV.js → OasProvider-CFBvfR3r.js} +2 -2
  58. package/lib/{OasProvider-DfTncecV.js.map → OasProvider-CFBvfR3r.js.map} +1 -1
  59. package/lib/{OperationList-DTQVxVx5.js → OperationList-Xs4KWmsh.js} +4 -4
  60. package/lib/{OperationList-DTQVxVx5.js.map → OperationList-Xs4KWmsh.js.map} +1 -1
  61. package/lib/{RouteGuard-DiCUImwp.js → RouteGuard-CZ_uLv3g.js} +2 -2
  62. package/lib/{RouteGuard-DiCUImwp.js.map → RouteGuard-CZ_uLv3g.js.map} +1 -1
  63. package/lib/{SchemaList-BoRsh_HT.js → SchemaList-BWaNlmUJ.js} +5 -5
  64. package/lib/{SchemaList-BoRsh_HT.js.map → SchemaList-BWaNlmUJ.js.map} +1 -1
  65. package/lib/{SchemaView-BpEFXAa1.js → SchemaView-DdKJt2ln.js} +3 -3
  66. package/lib/{SchemaView-BpEFXAa1.js.map → SchemaView-DdKJt2ln.js.map} +1 -1
  67. package/lib/{Slot-xguyqKKU.js → Slot-B99cbD-q.js} +2 -2
  68. package/lib/{Slot-xguyqKKU.js.map → Slot-B99cbD-q.js.map} +1 -1
  69. package/lib/{Toc-CYYLzWX_.js → Toc-Qe7A4uj_.js} +2 -2
  70. package/lib/{Toc-CYYLzWX_.js.map → Toc-Qe7A4uj_.js.map} +1 -1
  71. package/lib/{circular-CCqt6vxH.js → circular-w5eL5J8a.js} +1812 -1807
  72. package/lib/circular-w5eL5J8a.js.map +1 -0
  73. package/lib/{createServer-Fm59dJVp.js → createServer-p3yUA8Bu.js} +3648 -3493
  74. package/lib/createServer-p3yUA8Bu.js.map +1 -0
  75. package/lib/{index-DCHP-Cbn.js → index-yqBxBqxF.js} +1053 -1095
  76. package/lib/index-yqBxBqxF.js.map +1 -0
  77. package/lib/react-nprogress.esm-C2MPXjiJ.js +389 -0
  78. package/lib/react-nprogress.esm-C2MPXjiJ.js.map +1 -0
  79. package/lib/ui/CodeBlock.js +17 -16
  80. package/lib/ui/CodeBlock.js.map +1 -1
  81. package/lib/ui/Command.js +1 -1
  82. package/lib/ui/Dialog.js +25 -25
  83. package/lib/ui/Dialog.js.map +1 -1
  84. package/lib/zudoku.components.js +1697 -2081
  85. package/lib/zudoku.components.js.map +1 -1
  86. package/lib/zudoku.plugin-api-catalog.js +1 -1
  87. package/lib/zudoku.plugin-api-keys.js +2 -2
  88. package/lib/zudoku.plugin-custom-pages.js +1 -1
  89. package/lib/zudoku.plugin-markdown.js +1 -1
  90. package/lib/zudoku.plugin-openapi.js +1 -1
  91. package/lib/zudoku.plugin-search-pagefind.js +3 -3
  92. package/package.json +8 -7
  93. package/src/lib/components/Bootstrap.tsx +4 -2
  94. package/src/lib/plugins/openapi/playground/BodyPanel.tsx +46 -0
  95. package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +4 -1
  96. package/src/lib/plugins/openapi/playground/Headers.tsx +110 -106
  97. package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +13 -11
  98. package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +2 -2
  99. package/src/lib/plugins/openapi/playground/PathParams.tsx +1 -1
  100. package/src/lib/plugins/openapi/playground/Playground.tsx +127 -211
  101. package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +2 -1
  102. package/src/lib/plugins/openapi/playground/QueryParams.tsx +1 -1
  103. package/src/lib/plugins/openapi/playground/fileUtils.ts +32 -0
  104. package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +74 -39
  105. package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +4 -1
  106. package/src/lib/plugins/openapi/playground/useRememberSkipLoginDialog.tsx +20 -0
  107. package/src/lib/ui/CodeBlock.tsx +1 -0
  108. package/src/lib/ui/Dialog.tsx +11 -7
  109. package/src/lib/util/humanFileSize.test.ts +24 -0
  110. package/src/lib/util/humanFileSize.ts +16 -0
  111. package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +0 -7
  112. package/dist/lib/plugins/openapi/playground/SubmitButton.js +0 -19
  113. package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +0 -1
  114. package/dist/ts.d.ts +0 -6
  115. package/dist/ts.js +0 -61
  116. package/dist/ts.js.map +0 -1
  117. package/lib/Dialog-B53OMCvW.js.map +0 -1
  118. package/lib/circular-CCqt6vxH.js.map +0 -1
  119. package/lib/createServer-Fm59dJVp.js.map +0 -1
  120. package/lib/index-DCHP-Cbn.js.map +0 -1
  121. package/src/lib/plugins/openapi/playground/SubmitButton.tsx +0 -70
@@ -1,81 +1,726 @@
1
- import { useMDXComponents as useMDXComponentsImport } from "@mdx-js/react";
2
- import { Helmet } from "@zudoku/react-helmet-async";
3
- import { RouterError as RouterErrorImport } from "../errors/RouterError.js";
4
- import { ServerError as ServerErrorImport } from "../errors/ServerError.js";
5
- import { CACHE_KEYS as CACHE_KEYS_IMPORT } from "./cache.js";
6
- export declare const Layout: ({ children }: {
7
- children?: import("react").ReactNode;
8
- }) => import("react/jsx-runtime").JSX.Element;
9
- export declare const RouterError: typeof RouterErrorImport;
10
- export declare const ServerError: typeof ServerErrorImport;
11
- export declare const Bootstrap: ({ router, hydrate, }: {
12
- hydrate?: boolean;
13
- router: ReturnType<typeof import("react-router").createBrowserRouter>;
14
- }) => import("react/jsx-runtime").JSX.Element;
15
- export declare const BootstrapStatic: ({ router, context, queryClient, helmetContext, bypassProtection, }: {
16
- helmetContext: HelmetData;
17
- context: import("react-router").StaticHandlerContext;
18
- queryClient: import("@tanstack/react-query").QueryClient;
19
- router: ReturnType<typeof import("react-router").createStaticRouter>;
20
- bypassProtection?: boolean;
21
- }) => import("react/jsx-runtime").JSX.Element;
22
- export declare const RouteGuard: () => import("react/jsx-runtime").JSX.Element;
23
- export declare const Head: typeof Helmet;
24
- export declare const StatusPage: ({ statusCode, message }: {
25
- statusCode: number;
26
- message?: import("react").ReactNode;
27
- }) => import("react/jsx-runtime").JSX.Element;
28
- export declare const Callout: ({ type, children, title, className, icon, }: {
29
- type: "info" | "note" | "tip" | "caution" | "danger";
30
- title?: string;
31
- children: import("react").ReactNode;
32
- className?: string;
33
- icon?: boolean;
34
- }) => import("react/jsx-runtime").JSX.Element;
35
- export declare const Markdown: import("react").MemoExoticComponent<({ content, className, components, }: {
36
- content: string;
37
- className?: string;
38
- components?: import("react-markdown").Components;
39
- }) => import("react/jsx-runtime").JSX.Element>;
40
- export declare const Spinner: ({ size }: {
41
- size?: number;
42
- }) => import("react/jsx-runtime").JSX.Element;
43
- export declare const ClientOnly: (props: {
44
- children: import("react").ReactNode;
45
- fallback?: import("react").ReactNode;
46
- }) => import("react").ReactNode;
47
- export declare const Button: import("react").ForwardRefExoticComponent<import("../ui/Button.js").ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
48
- export declare const Link: import("react").ForwardRefExoticComponent<import("react-router").LinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
49
- export declare const BuildCheck: ({ buildId, endpoint, }: {
50
- buildId?: string;
51
- endpoint?: string;
52
- }) => import("react/jsx-runtime").JSX.Element | null;
53
- export declare const Zudoku: {
54
- (props: import("../core/ZudokuContext.js").ZudokuContextOptions): import("react/jsx-runtime").JSX.Element;
55
- displayName: string;
56
- };
57
- /** @deprecated Import from `zudoku/hooks` instead */
58
- export declare const useMDXComponents: typeof useMDXComponentsImport;
59
- /** @deprecated Import from `zudoku/hooks` instead */
60
- export declare const useZudoku: () => import("../core/ZudokuContext.js").ZudokuContext;
61
- /** @deprecated Import from `zudoku/hooks` instead */
62
- export declare const useAuth: () => {
63
- login: () => Promise<void>;
64
- logout: () => Promise<void>;
65
- signup: () => Promise<void>;
66
- isAuthenticated: boolean;
67
- isPending: boolean;
68
- profile: import("../authentication/state.js").UserProfile | null;
69
- providerData: unknown;
70
- isAuthEnabled: boolean;
71
- };
72
- /** @deprecated Import from `zudoku/hooks` instead */
73
- export declare const useCache: () => {
74
- invalidateCache: (key: keyof typeof CACHE_KEYS_IMPORT) => Promise<void>;
75
- };
76
- /** @deprecated Import from `zudoku/hooks` instead */
77
- export declare const CACHE_KEYS: Readonly<{
78
- API_IDENTITIES: string[];
79
- }>;
80
- /** @deprecated Import from `zudoku/hooks` instead */
81
- export declare const useTheme: () => import("next-themes").UseThemeProps;
1
+ import type { BundledTheme } from 'shiki';
2
+ import { ClassProp } from 'class-variance-authority/types';
3
+ import { ComponentProps } from 'react';
4
+ import { Components } from 'react-markdown';
5
+ import { ComponentType } from 'react';
6
+ import { createBrowserRouter } from 'react-router';
7
+ import { createStaticRouter } from 'react-router';
8
+ import { ForwardRefExoticComponent } from 'react';
9
+ import { Helmet } from '@zudoku/react-helmet-async';
10
+ import type { HighlighterCore } from 'shiki';
11
+ import { JSX } from 'react/jsx-runtime';
12
+ import { LinkProps } from 'react-router';
13
+ import { Location as Location_2 } from 'react-router';
14
+ import { LucideIcon } from 'lucide-react';
15
+ import { MDXComponents } from 'mdx/types.js';
16
+ import { MemoExoticComponent } from 'react';
17
+ import { NamedExoticComponent } from 'react';
18
+ import { NavigateFunction } from 'react-router';
19
+ import { Params } from 'react-router';
20
+ import { QueryClient } from '@tanstack/react-query';
21
+ import * as React_2 from 'react';
22
+ import type { ReactElement } from 'react';
23
+ import { ReactNode } from 'react';
24
+ import { RefAttributes } from 'react';
25
+ import type { RouteObject } from 'react-router';
26
+ import { SetURLSearchParams } from 'react-router';
27
+ import { StaticHandlerContext } from 'react-router';
28
+ import { Unsubscribe } from 'nanoevents';
29
+ import { useMDXComponents as useMDXComponents_2 } from '@mdx-js/react';
30
+ import { UseThemeProps } from 'next-themes';
31
+ import { VariantProps } from 'class-variance-authority';
32
+ import { z } from 'zod';
33
+
34
+ declare interface ApiIdentity {
35
+ authorizeRequest: (request: Request) => Promise<Request> | Request;
36
+ authorizationFields?: {
37
+ headers?: string[];
38
+ queryParams?: string[];
39
+ };
40
+ label: string;
41
+ id: string;
42
+ }
43
+
44
+ declare interface ApiIdentityPlugin {
45
+ getIdentities: (context: ZudokuContext) => Promise<ApiIdentity[]>;
46
+ }
47
+
48
+ declare interface AuthenticationPlugin {
49
+ signUp(options?: {
50
+ redirectTo?: string;
51
+ }): Promise<void>;
52
+ signIn(options?: {
53
+ redirectTo?: string;
54
+ }): Promise<void>;
55
+ signOut(): Promise<void>;
56
+ getAccessToken(): Promise<string>;
57
+ onPageLoad?(): void;
58
+ signRequest(request: Request): Promise<Request>;
59
+ }
60
+
61
+ declare interface AuthState<ProviderData = unknown> {
62
+ isAuthenticated: boolean;
63
+ isPending: boolean;
64
+ profile: UserProfile | null;
65
+ providerData: ProviderData | null;
66
+ }
67
+
68
+ declare type BaseInputSidebarItemCategoryLinkDoc = z.infer<typeof BaseInputSidebarItemCategoryLinkDocSchema>;
69
+
70
+ declare const BaseInputSidebarItemCategoryLinkDocSchema: z.ZodObject<{
71
+ type: z.ZodLiteral<"doc">;
72
+ id: z.ZodString;
73
+ label: z.ZodOptional<z.ZodString>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ type: "doc";
76
+ id: string;
77
+ label?: string | undefined;
78
+ }, {
79
+ type: "doc";
80
+ id: string;
81
+ label?: string | undefined;
82
+ }>;
83
+
84
+ declare const BaseInputSidebarItemCategorySchema: z.ZodObject<{
85
+ type: z.ZodLiteral<"category">;
86
+ icon: z.ZodOptional<z.ZodType<IconNames, z.ZodTypeDef, IconNames>>;
87
+ label: z.ZodString;
88
+ description: z.ZodOptional<z.ZodString>;
89
+ collapsible: z.ZodOptional<z.ZodBoolean>;
90
+ collapsed: z.ZodOptional<z.ZodBoolean>;
91
+ link: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
92
+ type: z.ZodLiteral<"doc">;
93
+ id: z.ZodString;
94
+ label: z.ZodOptional<z.ZodString>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ type: "doc";
97
+ id: string;
98
+ label?: string | undefined;
99
+ }, {
100
+ type: "doc";
101
+ id: string;
102
+ label?: string | undefined;
103
+ }>, z.ZodString]>>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ type: "category";
106
+ label: string;
107
+ link?: string | {
108
+ type: "doc";
109
+ id: string;
110
+ label?: string | undefined;
111
+ } | undefined;
112
+ description?: string | undefined;
113
+ icon?: IconNames | undefined;
114
+ collapsible?: boolean | undefined;
115
+ collapsed?: boolean | undefined;
116
+ }, {
117
+ type: "category";
118
+ label: string;
119
+ link?: string | {
120
+ type: "doc";
121
+ id: string;
122
+ label?: string | undefined;
123
+ } | undefined;
124
+ description?: string | undefined;
125
+ icon?: IconNames | undefined;
126
+ collapsible?: boolean | undefined;
127
+ collapsed?: boolean | undefined;
128
+ }>;
129
+
130
+ declare type BaseInputSidebarItemDoc = z.infer<typeof BaseInputSidebarItemDocSchema>;
131
+
132
+ declare const BaseInputSidebarItemDocSchema: z.ZodObject<{
133
+ type: z.ZodLiteral<"doc">;
134
+ id: z.ZodString;
135
+ icon: z.ZodOptional<z.ZodType<IconNames, z.ZodTypeDef, IconNames>>;
136
+ label: z.ZodOptional<z.ZodString>;
137
+ badge: z.ZodOptional<z.ZodObject<{
138
+ label: z.ZodString;
139
+ color: z.ZodEnum<["green", "blue", "yellow", "red", "purple", "indigo", "gray", "outline"]>;
140
+ placement: z.ZodOptional<z.ZodEnum<["start", "end"]>>;
141
+ invert: z.ZodOptional<z.ZodBoolean>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ label: string;
144
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray" | "outline";
145
+ placement?: "start" | "end" | undefined;
146
+ invert?: boolean | undefined;
147
+ }, {
148
+ label: string;
149
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray" | "outline";
150
+ placement?: "start" | "end" | undefined;
151
+ invert?: boolean | undefined;
152
+ }>>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ type: "doc";
155
+ id: string;
156
+ badge?: {
157
+ label: string;
158
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray" | "outline";
159
+ placement?: "start" | "end" | undefined;
160
+ invert?: boolean | undefined;
161
+ } | undefined;
162
+ label?: string | undefined;
163
+ icon?: IconNames | undefined;
164
+ }, {
165
+ type: "doc";
166
+ id: string;
167
+ badge?: {
168
+ label: string;
169
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray" | "outline";
170
+ placement?: "start" | "end" | undefined;
171
+ invert?: boolean | undefined;
172
+ } | undefined;
173
+ label?: string | undefined;
174
+ icon?: IconNames | undefined;
175
+ }>;
176
+
177
+ export declare const Bootstrap: ({ router, hydrate, }: {
178
+ hydrate?: boolean;
179
+ router: ReturnType<createBrowserRouter>;
180
+ }) => JSX.Element;
181
+
182
+ export declare const BootstrapStatic: ({ router, context, queryClient, helmetContext, bypassProtection, }: {
183
+ helmetContext: any;
184
+ context: StaticHandlerContext;
185
+ queryClient: QueryClient;
186
+ router: ReturnType<createStaticRouter>;
187
+ bypassProtection?: boolean;
188
+ }) => JSX.Element;
189
+
190
+ export declare const BuildCheck: ({ buildId, endpoint, }: {
191
+ buildId?: string;
192
+ endpoint?: string;
193
+ }) => JSX.Element | null;
194
+
195
+ export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
196
+
197
+ declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
198
+ asChild?: boolean;
199
+ }
200
+
201
+ declare const buttonVariants: (props?: ({
202
+ variant?: "link" | "default" | "expand" | "ghost" | "outline" | "secondary" | "destructive" | "ghost-destructive" | null | undefined;
203
+ size?: "default" | "icon" | "sm" | "lg" | "xl" | "icon-xs" | null | undefined;
204
+ } & ClassProp) | undefined) => string;
205
+
206
+ /** @deprecated Import from `zudoku/hooks` instead */
207
+ export declare const CACHE_KEYS: Readonly<{
208
+ API_IDENTITIES: string[];
209
+ }>;
210
+
211
+ declare const CACHE_KEYS_2: Readonly<{
212
+ API_IDENTITIES: string[];
213
+ }>;
214
+
215
+ export declare const Callout: ({ type, children, title, className, icon, }: {
216
+ type: "info" | "note" | "tip" | "caution" | "danger";
217
+ title?: string;
218
+ children: ReactNode;
219
+ className?: string;
220
+ icon?: boolean;
221
+ }) => JSX.Element;
222
+
223
+ export declare const ClientOnly: (props: {
224
+ children: ReactNode;
225
+ fallback?: ReactNode;
226
+ }) => ReactNode;
227
+
228
+ declare interface CommonPlugin {
229
+ initialize?: (context: ZudokuContext) => Promise<void | boolean> | void | boolean;
230
+ getHead?: ({ location }: {
231
+ location: Location_2;
232
+ }) => ReactElement | undefined;
233
+ getMdxComponents?: () => MdxComponentsType;
234
+ }
235
+
236
+ declare type ComponentsContextType = {
237
+ Header?: ComponentType<ComponentProps<typeof Header>>;
238
+ };
239
+
240
+ declare type EventConsumerPlugin<Event extends ZudokuEvents = ZudokuEvents> = {
241
+ events: {
242
+ [K in keyof Event]?: Event[K];
243
+ };
244
+ };
245
+
246
+ declare type ExposedComponentProps = {
247
+ location: Location_2;
248
+ navigate: NavigateFunction;
249
+ searchParams: URLSearchParams;
250
+ setSearchParams: SetURLSearchParams;
251
+ params: Params;
252
+ };
253
+
254
+ declare const FooterSchema: z.ZodOptional<z.ZodObject<{
255
+ columns: z.ZodOptional<z.ZodArray<z.ZodObject<{
256
+ position: z.ZodOptional<z.ZodEnum<["start", "center", "end"]>>;
257
+ title: z.ZodString;
258
+ links: z.ZodArray<z.ZodObject<{
259
+ label: z.ZodString;
260
+ href: z.ZodString;
261
+ }, "strip", z.ZodTypeAny, {
262
+ label: string;
263
+ href: string;
264
+ }, {
265
+ label: string;
266
+ href: string;
267
+ }>, "many">;
268
+ }, "strip", z.ZodTypeAny, {
269
+ title: string;
270
+ links: {
271
+ label: string;
272
+ href: string;
273
+ }[];
274
+ position?: "start" | "end" | "center" | undefined;
275
+ }, {
276
+ title: string;
277
+ links: {
278
+ label: string;
279
+ href: string;
280
+ }[];
281
+ position?: "start" | "end" | "center" | undefined;
282
+ }>, "many">>;
283
+ social: z.ZodOptional<z.ZodArray<z.ZodObject<{
284
+ label: z.ZodOptional<z.ZodString>;
285
+ href: z.ZodString;
286
+ icon: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["reddit", "discord", "github", "x", "linkedin", "facebook", "instagram", "youtube", "tiktok", "twitch", "pinterest", "snapchat", "whatsapp", "telegram"]>, z.ZodType<ReactNode, z.ZodTypeDef, ReactNode>]>>;
287
+ }, "strip", z.ZodTypeAny, {
288
+ href: string;
289
+ label?: string | undefined;
290
+ icon?: ReactNode;
291
+ }, {
292
+ href: string;
293
+ label?: string | undefined;
294
+ icon?: ReactNode;
295
+ }>, "many">>;
296
+ copyright: z.ZodOptional<z.ZodString>;
297
+ logo: z.ZodOptional<z.ZodObject<{
298
+ src: z.ZodObject<{
299
+ light: z.ZodString;
300
+ dark: z.ZodString;
301
+ }, "strip", z.ZodTypeAny, {
302
+ light: string;
303
+ dark: string;
304
+ }, {
305
+ light: string;
306
+ dark: string;
307
+ }>;
308
+ alt: z.ZodOptional<z.ZodString>;
309
+ width: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
310
+ }, "strip", z.ZodTypeAny, {
311
+ src: {
312
+ light: string;
313
+ dark: string;
314
+ };
315
+ alt?: string | undefined;
316
+ width?: string | number | undefined;
317
+ }, {
318
+ src: {
319
+ light: string;
320
+ dark: string;
321
+ };
322
+ alt?: string | undefined;
323
+ width?: string | number | undefined;
324
+ }>>;
325
+ position: z.ZodOptional<z.ZodEnum<["start", "center", "end"]>>;
326
+ }, "strip", z.ZodTypeAny, {
327
+ columns?: {
328
+ title: string;
329
+ links: {
330
+ label: string;
331
+ href: string;
332
+ }[];
333
+ position?: "start" | "end" | "center" | undefined;
334
+ }[] | undefined;
335
+ copyright?: string | undefined;
336
+ logo?: {
337
+ src: {
338
+ light: string;
339
+ dark: string;
340
+ };
341
+ alt?: string | undefined;
342
+ width?: string | number | undefined;
343
+ } | undefined;
344
+ position?: "start" | "end" | "center" | undefined;
345
+ social?: {
346
+ href: string;
347
+ label?: string | undefined;
348
+ icon?: ReactNode;
349
+ }[] | undefined;
350
+ }, {
351
+ columns?: {
352
+ title: string;
353
+ links: {
354
+ label: string;
355
+ href: string;
356
+ }[];
357
+ position?: "start" | "end" | "center" | undefined;
358
+ }[] | undefined;
359
+ copyright?: string | undefined;
360
+ logo?: {
361
+ src: {
362
+ light: string;
363
+ dark: string;
364
+ };
365
+ alt?: string | undefined;
366
+ width?: string | number | undefined;
367
+ } | undefined;
368
+ position?: "start" | "end" | "center" | undefined;
369
+ social?: {
370
+ href: string;
371
+ label?: string | undefined;
372
+ icon?: ReactNode;
373
+ }[] | undefined;
374
+ }>>;
375
+
376
+ export declare const Head: typeof Helmet;
377
+
378
+ declare const Header: NamedExoticComponent<object>;
379
+
380
+ declare type IconNames = "a-arrow-down" | "a-arrow-up" | "a-large-small" | "accessibility" | "activity" | "activity-square" | "air-vent" | "airplay" | "alarm-check" | "alarm-clock" | "alarm-clock-check" | "alarm-clock-minus" | "alarm-clock-off" | "alarm-clock-plus" | "alarm-minus" | "alarm-plus" | "alarm-smoke" | "album" | "alert-circle" | "alert-octagon" | "alert-triangle" | "align-center" | "align-center-horizontal" | "align-center-vertical" | "align-end-horizontal" | "align-end-vertical" | "align-horizontal-distribute-center" | "align-horizontal-distribute-end" | "align-horizontal-distribute-start" | "align-horizontal-justify-center" | "align-horizontal-justify-end" | "align-horizontal-justify-start" | "align-horizontal-space-around" | "align-horizontal-space-between" | "align-justify" | "align-left" | "align-right" | "align-start-horizontal" | "align-start-vertical" | "align-vertical-distribute-center" | "align-vertical-distribute-end" | "align-vertical-distribute-start" | "align-vertical-justify-center" | "align-vertical-justify-end" | "align-vertical-justify-start" | "align-vertical-space-around" | "align-vertical-space-between" | "ambulance" | "ampersand" | "ampersands" | "amphora" | "anchor" | "angry" | "annoyed" | "antenna" | "anvil" | "aperture" | "app-window" | "app-window-mac" | "apple" | "archive" | "archive-restore" | "archive-x" | "area-chart" | "armchair" | "arrow-big-down" | "arrow-big-down-dash" | "arrow-big-left" | "arrow-big-left-dash" | "arrow-big-right" | "arrow-big-right-dash" | "arrow-big-up" | "arrow-big-up-dash" | "arrow-down" | "arrow-down-0-1" | "arrow-down-01" | "arrow-down-1-0" | "arrow-down-10" | "arrow-down-a-z" | "arrow-down-az" | "arrow-down-circle" | "arrow-down-from-line" | "arrow-down-left" | "arrow-down-left-from-circle" | "arrow-down-left-from-square" | "arrow-down-left-square" | "arrow-down-narrow-wide" | "arrow-down-right" | "arrow-down-right-from-circle" | "arrow-down-right-from-square" | "arrow-down-right-square" | "arrow-down-square" | "arrow-down-to-dot" | "arrow-down-to-line" | "arrow-down-up" | "arrow-down-wide-narrow" | "arrow-down-z-a" | "arrow-down-za" | "arrow-left" | "arrow-left-circle" | "arrow-left-from-line" | "arrow-left-right" | "arrow-left-square" | "arrow-left-to-line" | "arrow-right" | "arrow-right-circle" | "arrow-right-from-line" | "arrow-right-left" | "arrow-right-square" | "arrow-right-to-line" | "arrow-up" | "arrow-up-0-1" | "arrow-up-01" | "arrow-up-1-0" | "arrow-up-10" | "arrow-up-a-z" | "arrow-up-az" | "arrow-up-circle" | "arrow-up-down" | "arrow-up-from-dot" | "arrow-up-from-line" | "arrow-up-left" | "arrow-up-left-from-circle" | "arrow-up-left-from-square" | "arrow-up-left-square" | "arrow-up-narrow-wide" | "arrow-up-right" | "arrow-up-right-from-circle" | "arrow-up-right-from-square" | "arrow-up-right-square" | "arrow-up-square" | "arrow-up-to-line" | "arrow-up-wide-narrow" | "arrow-up-z-a" | "arrow-up-za" | "arrows-up-from-line" | "asterisk" | "asterisk-square" | "at-sign" | "atom" | "audio-lines" | "audio-waveform" | "award" | "axe" | "axis-3-d" | "axis-3d" | "baby" | "backpack" | "badge" | "badge-alert" | "badge-cent" | "badge-check" | "badge-dollar-sign" | "badge-euro" | "badge-help" | "badge-indian-rupee" | "badge-info" | "badge-japanese-yen" | "badge-minus" | "badge-percent" | "badge-plus" | "badge-pound-sterling" | "badge-russian-ruble" | "badge-swiss-franc" | "badge-x" | "baggage-claim" | "ban" | "banana" | "bandage" | "banknote" | "banknote-arrow-down" | "banknote-arrow-up" | "banknote-x" | "bar-chart" | "bar-chart-2" | "bar-chart-3" | "bar-chart-4" | "bar-chart-big" | "bar-chart-horizontal" | "bar-chart-horizontal-big" | "barcode" | "baseline" | "bath" | "battery" | "battery-charging" | "battery-full" | "battery-low" | "battery-medium" | "battery-plus" | "battery-warning" | "beaker" | "bean" | "bean-off" | "bed" | "bed-double" | "bed-single" | "beef" | "beer" | "beer-off" | "bell" | "bell-dot" | "bell-electric" | "bell-minus" | "bell-off" | "bell-plus" | "bell-ring" | "between-horizonal-end" | "between-horizonal-start" | "between-horizontal-end" | "between-horizontal-start" | "between-vertical-end" | "between-vertical-start" | "biceps-flexed" | "bike" | "binary" | "binoculars" | "biohazard" | "bird" | "bitcoin" | "blend" | "blinds" | "blocks" | "bluetooth" | "bluetooth-connected" | "bluetooth-off" | "bluetooth-searching" | "bold" | "bolt" | "bomb" | "bone" | "book" | "book-a" | "book-audio" | "book-check" | "book-copy" | "book-dashed" | "book-down" | "book-headphones" | "book-heart" | "book-image" | "book-key" | "book-lock" | "book-marked" | "book-minus" | "book-open" | "book-open-check" | "book-open-text" | "book-plus" | "book-template" | "book-text" | "book-type" | "book-up" | "book-up-2" | "book-user" | "book-x" | "bookmark" | "bookmark-check" | "bookmark-minus" | "bookmark-plus" | "bookmark-x" | "boom-box" | "bot" | "bot-message-square" | "bot-off" | "box" | "box-select" | "boxes" | "braces" | "brackets" | "brain" | "brain-circuit" | "brain-cog" | "brick-wall" | "briefcase" | "briefcase-business" | "briefcase-conveyor-belt" | "briefcase-medical" | "bring-to-front" | "brush" | "bug" | "bug-off" | "bug-play" | "building" | "building-2" | "bus" | "bus-front" | "cable" | "cable-car" | "cake" | "cake-slice" | "calculator" | "calendar" | "calendar-1" | "calendar-arrow-down" | "calendar-arrow-up" | "calendar-check" | "calendar-check-2" | "calendar-clock" | "calendar-cog" | "calendar-days" | "calendar-fold" | "calendar-heart" | "calendar-minus" | "calendar-minus-2" | "calendar-off" | "calendar-plus" | "calendar-plus-2" | "calendar-range" | "calendar-search" | "calendar-sync" | "calendar-x" | "calendar-x-2" | "camera" | "camera-off" | "candlestick-chart" | "candy" | "candy-cane" | "candy-off" | "cannabis" | "captions" | "captions-off" | "car" | "car-front" | "car-taxi-front" | "caravan" | "carrot" | "case-lower" | "case-sensitive" | "case-upper" | "cassette-tape" | "cast" | "castle" | "cat" | "cctv" | "chart-area" | "chart-bar" | "chart-bar-big" | "chart-bar-decreasing" | "chart-bar-increasing" | "chart-bar-stacked" | "chart-candlestick" | "chart-column" | "chart-column-big" | "chart-column-decreasing" | "chart-column-increasing" | "chart-column-stacked" | "chart-gantt" | "chart-line" | "chart-network" | "chart-no-axes-column" | "chart-no-axes-column-decreasing" | "chart-no-axes-column-increasing" | "chart-no-axes-combined" | "chart-no-axes-gantt" | "chart-pie" | "chart-scatter" | "chart-spline" | "check" | "check-check" | "check-circle" | "check-circle-2" | "check-square" | "check-square-2" | "chef-hat" | "cherry" | "chevron-down" | "chevron-down-circle" | "chevron-down-square" | "chevron-first" | "chevron-last" | "chevron-left" | "chevron-left-circle" | "chevron-left-square" | "chevron-right" | "chevron-right-circle" | "chevron-right-square" | "chevron-up" | "chevron-up-circle" | "chevron-up-square" | "chevrons-down" | "chevrons-down-up" | "chevrons-left" | "chevrons-left-right" | "chevrons-left-right-ellipsis" | "chevrons-right" | "chevrons-right-left" | "chevrons-up" | "chevrons-up-down" | "chrome" | "church" | "cigarette" | "cigarette-off" | "circle" | "circle-alert" | "circle-arrow-down" | "circle-arrow-left" | "circle-arrow-out-down-left" | "circle-arrow-out-down-right" | "circle-arrow-out-up-left" | "circle-arrow-out-up-right" | "circle-arrow-right" | "circle-arrow-up" | "circle-check" | "circle-check-big" | "circle-chevron-down" | "circle-chevron-left" | "circle-chevron-right" | "circle-chevron-up" | "circle-dashed" | "circle-divide" | "circle-dollar-sign" | "circle-dot" | "circle-dot-dashed" | "circle-ellipsis" | "circle-equal" | "circle-fading-arrow-up" | "circle-fading-plus" | "circle-gauge" | "circle-help" | "circle-minus" | "circle-off" | "circle-parking" | "circle-parking-off" | "circle-pause" | "circle-percent" | "circle-play" | "circle-plus" | "circle-power" | "circle-slash" | "circle-slash-2" | "circle-slashed" | "circle-small" | "circle-stop" | "circle-user" | "circle-user-round" | "circle-x" | "circuit-board" | "citrus" | "clapperboard" | "clipboard" | "clipboard-check" | "clipboard-copy" | "clipboard-edit" | "clipboard-list" | "clipboard-minus" | "clipboard-paste" | "clipboard-pen" | "clipboard-pen-line" | "clipboard-plus" | "clipboard-signature" | "clipboard-type" | "clipboard-x" | "clock" | "clock-1" | "clock-10" | "clock-11" | "clock-12" | "clock-2" | "clock-3" | "clock-4" | "clock-5" | "clock-6" | "clock-7" | "clock-8" | "clock-9" | "clock-alert" | "clock-arrow-down" | "clock-arrow-up" | "clock-fading" | "cloud" | "cloud-alert" | "cloud-cog" | "cloud-download" | "cloud-drizzle" | "cloud-fog" | "cloud-hail" | "cloud-lightning" | "cloud-moon" | "cloud-moon-rain" | "cloud-off" | "cloud-rain" | "cloud-rain-wind" | "cloud-snow" | "cloud-sun" | "cloud-sun-rain" | "cloud-upload" | "cloudy" | "clover" | "club" | "code" | "code-2" | "code-square" | "code-xml" | "codepen" | "codesandbox" | "coffee" | "cog" | "coins" | "columns" | "columns-2" | "columns-3" | "columns-4" | "combine" | "command" | "compass" | "component" | "computer" | "concierge-bell" | "cone" | "construction" | "contact" | "contact-2" | "contact-round" | "container" | "contrast" | "cookie" | "cooking-pot" | "copy" | "copy-check" | "copy-minus" | "copy-plus" | "copy-slash" | "copy-x" | "copyleft" | "copyright" | "corner-down-left" | "corner-down-right" | "corner-left-down" | "corner-left-up" | "corner-right-down" | "corner-right-up" | "corner-up-left" | "corner-up-right" | "cpu" | "creative-commons" | "credit-card" | "croissant" | "crop" | "cross" | "crosshair" | "crown" | "cuboid" | "cup-soda" | "curly-braces" | "currency" | "cylinder" | "dam" | "database" | "database-backup" | "database-zap" | "delete" | "dessert" | "diameter" | "diamond" | "diamond-minus" | "diamond-percent" | "diamond-plus" | "dice-1" | "dice-2" | "dice-3" | "dice-4" | "dice-5" | "dice-6" | "dices" | "diff" | "disc" | "disc-2" | "disc-3" | "disc-album" | "divide" | "divide-circle" | "divide-square" | "dna" | "dna-off" | "dock" | "dog" | "dollar-sign" | "donut" | "door-closed" | "door-open" | "dot" | "dot-square" | "download" | "download-cloud" | "drafting-compass" | "drama" | "dribbble" | "drill" | "droplet" | "droplet-off" | "droplets" | "drum" | "drumstick" | "dumbbell" | "ear" | "ear-off" | "earth" | "earth-lock" | "eclipse" | "edit" | "edit-2" | "edit-3" | "egg" | "egg-fried" | "egg-off" | "ellipsis" | "ellipsis-vertical" | "equal" | "equal-approximately" | "equal-not" | "equal-square" | "eraser" | "ethernet-port" | "euro" | "expand" | "external-link" | "eye" | "eye-closed" | "eye-off" | "facebook" | "factory" | "fan" | "fast-forward" | "feather" | "fence" | "ferris-wheel" | "figma" | "file" | "file-archive" | "file-audio" | "file-audio-2" | "file-axis-3-d" | "file-axis-3d" | "file-badge" | "file-badge-2" | "file-bar-chart" | "file-bar-chart-2" | "file-box" | "file-chart-column" | "file-chart-column-increasing" | "file-chart-line" | "file-chart-pie" | "file-check" | "file-check-2" | "file-clock" | "file-code" | "file-code-2" | "file-cog" | "file-cog-2" | "file-diff" | "file-digit" | "file-down" | "file-edit" | "file-heart" | "file-image" | "file-input" | "file-json" | "file-json-2" | "file-key" | "file-key-2" | "file-line-chart" | "file-lock" | "file-lock-2" | "file-minus" | "file-minus-2" | "file-music" | "file-output" | "file-pen" | "file-pen-line" | "file-pie-chart" | "file-plus" | "file-plus-2" | "file-question" | "file-scan" | "file-search" | "file-search-2" | "file-signature" | "file-sliders" | "file-spreadsheet" | "file-stack" | "file-symlink" | "file-terminal" | "file-text" | "file-type" | "file-type-2" | "file-up" | "file-user" | "file-video" | "file-video-2" | "file-volume" | "file-volume-2" | "file-warning" | "file-x" | "file-x-2" | "files" | "film" | "filter" | "filter-x" | "fingerprint" | "fire-extinguisher" | "fish" | "fish-off" | "fish-symbol" | "flag" | "flag-off" | "flag-triangle-left" | "flag-triangle-right" | "flame" | "flame-kindling" | "flashlight" | "flashlight-off" | "flask-conical" | "flask-conical-off" | "flask-round" | "flip-horizontal" | "flip-horizontal-2" | "flip-vertical" | "flip-vertical-2" | "flower" | "flower-2" | "focus" | "fold-horizontal" | "fold-vertical" | "folder" | "folder-archive" | "folder-check" | "folder-clock" | "folder-closed" | "folder-code" | "folder-cog" | "folder-cog-2" | "folder-dot" | "folder-down" | "folder-edit" | "folder-git" | "folder-git-2" | "folder-heart" | "folder-input" | "folder-kanban" | "folder-key" | "folder-lock" | "folder-minus" | "folder-open" | "folder-open-dot" | "folder-output" | "folder-pen" | "folder-plus" | "folder-root" | "folder-search" | "folder-search-2" | "folder-symlink" | "folder-sync" | "folder-tree" | "folder-up" | "folder-x" | "folders" | "footprints" | "fork-knife" | "fork-knife-crossed" | "forklift" | "form-input" | "forward" | "frame" | "framer" | "frown" | "fuel" | "fullscreen" | "function-square" | "funnel" | "funnel-plus" | "funnel-x" | "gallery-horizontal" | "gallery-horizontal-end" | "gallery-thumbnails" | "gallery-vertical" | "gallery-vertical-end" | "gamepad" | "gamepad-2" | "gantt-chart" | "gantt-chart-square" | "gauge" | "gauge-circle" | "gavel" | "gem" | "ghost" | "gift" | "git-branch" | "git-branch-plus" | "git-commit" | "git-commit-horizontal" | "git-commit-vertical" | "git-compare" | "git-compare-arrows" | "git-fork" | "git-graph" | "git-merge" | "git-pull-request" | "git-pull-request-arrow" | "git-pull-request-closed" | "git-pull-request-create" | "git-pull-request-create-arrow" | "git-pull-request-draft" | "github" | "gitlab" | "glass-water" | "glasses" | "globe" | "globe-2" | "globe-lock" | "goal" | "grab" | "graduation-cap" | "grape" | "grid" | "grid-2-x-2" | "grid-2-x-2-check" | "grid-2-x-2-plus" | "grid-2-x-2-x" | "grid-2x2" | "grid-2x2-check" | "grid-2x2-plus" | "grid-2x2-x" | "grid-3-x-3" | "grid-3x3" | "grip" | "grip-horizontal" | "grip-vertical" | "group" | "guitar" | "ham" | "hammer" | "hand" | "hand-coins" | "hand-heart" | "hand-helping" | "hand-metal" | "hand-platter" | "handshake" | "hard-drive" | "hard-drive-download" | "hard-drive-upload" | "hard-hat" | "hash" | "haze" | "hdmi-port" | "heading" | "heading-1" | "heading-2" | "heading-3" | "heading-4" | "heading-5" | "heading-6" | "headphone-off" | "headphones" | "headset" | "heart" | "heart-crack" | "heart-handshake" | "heart-off" | "heart-pulse" | "heater" | "help-circle" | "helping-hand" | "hexagon" | "highlighter" | "history" | "home" | "hop" | "hop-off" | "hospital" | "hotel" | "hourglass" | "house" | "house-plug" | "house-plus" | "house-wifi" | "ice-cream" | "ice-cream-2" | "ice-cream-bowl" | "ice-cream-cone" | "id-card" | "image" | "image-down" | "image-minus" | "image-off" | "image-play" | "image-plus" | "image-up" | "image-upscale" | "images" | "import" | "inbox" | "indent" | "indent-decrease" | "indent-increase" | "indian-rupee" | "infinity" | "info" | "inspect" | "inspection-panel" | "instagram" | "italic" | "iteration-ccw" | "iteration-cw" | "japanese-yen" | "joystick" | "kanban" | "kanban-square" | "kanban-square-dashed" | "key" | "key-round" | "key-square" | "keyboard" | "keyboard-music" | "keyboard-off" | "lamp" | "lamp-ceiling" | "lamp-desk" | "lamp-floor" | "lamp-wall-down" | "lamp-wall-up" | "land-plot" | "landmark" | "languages" | "laptop" | "laptop-2" | "laptop-minimal" | "laptop-minimal-check" | "lasso" | "lasso-select" | "laugh" | "layers" | "layers-2" | "layers-3" | "layout" | "layout-dashboard" | "layout-grid" | "layout-list" | "layout-panel-left" | "layout-panel-top" | "layout-template" | "leaf" | "leafy-green" | "lectern" | "letter-text" | "library" | "library-big" | "library-square" | "life-buoy" | "ligature" | "lightbulb" | "lightbulb-off" | "line-chart" | "link" | "link-2" | "link-2-off" | "linkedin" | "list" | "list-check" | "list-checks" | "list-collapse" | "list-end" | "list-filter" | "list-filter-plus" | "list-minus" | "list-music" | "list-ordered" | "list-plus" | "list-restart" | "list-start" | "list-todo" | "list-tree" | "list-video" | "list-x" | "loader" | "loader-2" | "loader-circle" | "loader-pinwheel" | "locate" | "locate-fixed" | "locate-off" | "lock" | "lock-keyhole" | "lock-keyhole-open" | "lock-open" | "log-in" | "log-out" | "logs" | "lollipop" | "luggage" | "m-square" | "magnet" | "mail" | "mail-check" | "mail-minus" | "mail-open" | "mail-plus" | "mail-question" | "mail-search" | "mail-warning" | "mail-x" | "mailbox" | "mails" | "map" | "map-pin" | "map-pin-check" | "map-pin-check-inside" | "map-pin-house" | "map-pin-minus" | "map-pin-minus-inside" | "map-pin-off" | "map-pin-plus" | "map-pin-plus-inside" | "map-pin-x" | "map-pin-x-inside" | "map-pinned" | "map-plus" | "mars" | "mars-stroke" | "martini" | "maximize" | "maximize-2" | "medal" | "megaphone" | "megaphone-off" | "meh" | "memory-stick" | "menu" | "menu-square" | "merge" | "message-circle" | "message-circle-code" | "message-circle-dashed" | "message-circle-heart" | "message-circle-more" | "message-circle-off" | "message-circle-plus" | "message-circle-question" | "message-circle-reply" | "message-circle-warning" | "message-circle-x" | "message-square" | "message-square-code" | "message-square-dashed" | "message-square-diff" | "message-square-dot" | "message-square-heart" | "message-square-lock" | "message-square-more" | "message-square-off" | "message-square-plus" | "message-square-quote" | "message-square-reply" | "message-square-share" | "message-square-text" | "message-square-warning" | "message-square-x" | "messages-square" | "mic" | "mic-2" | "mic-off" | "mic-vocal" | "microchip" | "microscope" | "microwave" | "milestone" | "milk" | "milk-off" | "minimize" | "minimize-2" | "minus" | "minus-circle" | "minus-square" | "monitor" | "monitor-check" | "monitor-cog" | "monitor-dot" | "monitor-down" | "monitor-off" | "monitor-pause" | "monitor-play" | "monitor-smartphone" | "monitor-speaker" | "monitor-stop" | "monitor-up" | "monitor-x" | "moon" | "moon-star" | "more-horizontal" | "more-vertical" | "mountain" | "mountain-snow" | "mouse" | "mouse-off" | "mouse-pointer" | "mouse-pointer-2" | "mouse-pointer-ban" | "mouse-pointer-click" | "mouse-pointer-square-dashed" | "move" | "move-3-d" | "move-3d" | "move-diagonal" | "move-diagonal-2" | "move-down" | "move-down-left" | "move-down-right" | "move-horizontal" | "move-left" | "move-right" | "move-up" | "move-up-left" | "move-up-right" | "move-vertical" | "music" | "music-2" | "music-3" | "music-4" | "navigation" | "navigation-2" | "navigation-2-off" | "navigation-off" | "network" | "newspaper" | "nfc" | "non-binary" | "notebook" | "notebook-pen" | "notebook-tabs" | "notebook-text" | "notepad-text" | "notepad-text-dashed" | "nut" | "nut-off" | "octagon" | "octagon-alert" | "octagon-minus" | "octagon-pause" | "octagon-x" | "omega" | "option" | "orbit" | "origami" | "outdent" | "package" | "package-2" | "package-check" | "package-minus" | "package-open" | "package-plus" | "package-search" | "package-x" | "paint-bucket" | "paint-roller" | "paintbrush" | "paintbrush-2" | "paintbrush-vertical" | "palette" | "palmtree" | "panel-bottom" | "panel-bottom-close" | "panel-bottom-dashed" | "panel-bottom-inactive" | "panel-bottom-open" | "panel-left" | "panel-left-close" | "panel-left-dashed" | "panel-left-inactive" | "panel-left-open" | "panel-right" | "panel-right-close" | "panel-right-dashed" | "panel-right-inactive" | "panel-right-open" | "panel-top" | "panel-top-close" | "panel-top-dashed" | "panel-top-inactive" | "panel-top-open" | "panels-left-bottom" | "panels-left-right" | "panels-right-bottom" | "panels-top-bottom" | "panels-top-left" | "paperclip" | "parentheses" | "parking-circle" | "parking-circle-off" | "parking-meter" | "parking-square" | "parking-square-off" | "party-popper" | "pause" | "pause-circle" | "pause-octagon" | "paw-print" | "pc-case" | "pen" | "pen-box" | "pen-line" | "pen-off" | "pen-square" | "pen-tool" | "pencil" | "pencil-line" | "pencil-off" | "pencil-ruler" | "pentagon" | "percent" | "percent-circle" | "percent-diamond" | "percent-square" | "person-standing" | "philippine-peso" | "phone" | "phone-call" | "phone-forwarded" | "phone-incoming" | "phone-missed" | "phone-off" | "phone-outgoing" | "pi" | "pi-square" | "piano" | "pickaxe" | "picture-in-picture" | "picture-in-picture-2" | "pie-chart" | "piggy-bank" | "pilcrow" | "pilcrow-left" | "pilcrow-right" | "pilcrow-square" | "pill" | "pill-bottle" | "pin" | "pin-off" | "pipette" | "pizza" | "plane" | "plane-landing" | "plane-takeoff" | "play" | "play-circle" | "play-square" | "plug" | "plug-2" | "plug-zap" | "plug-zap-2" | "plus" | "plus-circle" | "plus-square" | "pocket" | "pocket-knife" | "podcast" | "pointer" | "pointer-off" | "popcorn" | "popsicle" | "pound-sterling" | "power" | "power-circle" | "power-off" | "power-square" | "presentation" | "printer" | "printer-check" | "projector" | "proportions" | "puzzle" | "pyramid" | "qr-code" | "quote" | "rabbit" | "radar" | "radiation" | "radical" | "radio" | "radio-receiver" | "radio-tower" | "radius" | "rail-symbol" | "rainbow" | "rat" | "ratio" | "receipt" | "receipt-cent" | "receipt-euro" | "receipt-indian-rupee" | "receipt-japanese-yen" | "receipt-pound-sterling" | "receipt-russian-ruble" | "receipt-swiss-franc" | "receipt-text" | "rectangle-ellipsis" | "rectangle-horizontal" | "rectangle-vertical" | "recycle" | "redo" | "redo-2" | "redo-dot" | "refresh-ccw" | "refresh-ccw-dot" | "refresh-cw" | "refresh-cw-off" | "refrigerator" | "regex" | "remove-formatting" | "repeat" | "repeat-1" | "repeat-2" | "replace" | "replace-all" | "reply" | "reply-all" | "rewind" | "ribbon" | "rocket" | "rocking-chair" | "roller-coaster" | "rotate-3-d" | "rotate-3d" | "rotate-ccw" | "rotate-ccw-square" | "rotate-cw" | "rotate-cw-square" | "route" | "route-off" | "router" | "rows" | "rows-2" | "rows-3" | "rows-4" | "rss" | "ruler" | "russian-ruble" | "sailboat" | "salad" | "sandwich" | "satellite" | "satellite-dish" | "saudi-riyal" | "save" | "save-all" | "save-off" | "scale" | "scale-3-d" | "scale-3d" | "scaling" | "scan" | "scan-barcode" | "scan-eye" | "scan-face" | "scan-heart" | "scan-line" | "scan-qr-code" | "scan-search" | "scan-text" | "scatter-chart" | "school" | "school-2" | "scissors" | "scissors-line-dashed" | "scissors-square" | "scissors-square-dashed-bottom" | "screen-share" | "screen-share-off" | "scroll" | "scroll-text" | "search" | "search-check" | "search-code" | "search-slash" | "search-x" | "section" | "send" | "send-horizonal" | "send-horizontal" | "send-to-back" | "separator-horizontal" | "separator-vertical" | "server" | "server-cog" | "server-crash" | "server-off" | "settings" | "settings-2" | "shapes" | "share" | "share-2" | "sheet" | "shell" | "shield" | "shield-alert" | "shield-ban" | "shield-check" | "shield-close" | "shield-ellipsis" | "shield-half" | "shield-minus" | "shield-off" | "shield-plus" | "shield-question" | "shield-user" | "shield-x" | "ship" | "ship-wheel" | "shirt" | "shopping-bag" | "shopping-basket" | "shopping-cart" | "shovel" | "shower-head" | "shrimp" | "shrink" | "shrub" | "shuffle" | "sidebar" | "sidebar-close" | "sidebar-open" | "sigma" | "sigma-square" | "signal" | "signal-high" | "signal-low" | "signal-medium" | "signal-zero" | "signature" | "signpost" | "signpost-big" | "siren" | "skip-back" | "skip-forward" | "skull" | "slack" | "slash" | "slash-square" | "slice" | "sliders" | "sliders-horizontal" | "sliders-vertical" | "smartphone" | "smartphone-charging" | "smartphone-nfc" | "smile" | "smile-plus" | "snail" | "snowflake" | "sofa" | "sort-asc" | "sort-desc" | "soup" | "space" | "spade" | "sparkle" | "sparkles" | "speaker" | "speech" | "spell-check" | "spell-check-2" | "spline" | "spline-pointer" | "split" | "split-square-horizontal" | "split-square-vertical" | "spray-can" | "sprout" | "square" | "square-activity" | "square-arrow-down" | "square-arrow-down-left" | "square-arrow-down-right" | "square-arrow-left" | "square-arrow-out-down-left" | "square-arrow-out-down-right" | "square-arrow-out-up-left" | "square-arrow-out-up-right" | "square-arrow-right" | "square-arrow-up" | "square-arrow-up-left" | "square-arrow-up-right" | "square-asterisk" | "square-bottom-dashed-scissors" | "square-chart-gantt" | "square-check" | "square-check-big" | "square-chevron-down" | "square-chevron-left" | "square-chevron-right" | "square-chevron-up" | "square-code" | "square-dashed" | "square-dashed-bottom" | "square-dashed-bottom-code" | "square-dashed-kanban" | "square-dashed-mouse-pointer" | "square-divide" | "square-dot" | "square-equal" | "square-function" | "square-gantt-chart" | "square-kanban" | "square-library" | "square-m" | "square-menu" | "square-minus" | "square-mouse-pointer" | "square-parking" | "square-parking-off" | "square-pen" | "square-percent" | "square-pi" | "square-pilcrow" | "square-play" | "square-plus" | "square-power" | "square-radical" | "square-round-corner" | "square-scissors" | "square-sigma" | "square-slash" | "square-split-horizontal" | "square-split-vertical" | "square-square" | "square-stack" | "square-terminal" | "square-user" | "square-user-round" | "square-x" | "squircle" | "squirrel" | "stamp" | "star" | "star-half" | "star-off" | "stars" | "step-back" | "step-forward" | "stethoscope" | "sticker" | "sticky-note" | "stop-circle" | "store" | "stretch-horizontal" | "stretch-vertical" | "strikethrough" | "subscript" | "subtitles" | "sun" | "sun-dim" | "sun-medium" | "sun-moon" | "sun-snow" | "sunrise" | "sunset" | "superscript" | "swatch-book" | "swiss-franc" | "switch-camera" | "sword" | "swords" | "syringe" | "table" | "table-2" | "table-cells-merge" | "table-cells-split" | "table-columns-split" | "table-of-contents" | "table-properties" | "table-rows-split" | "tablet" | "tablet-smartphone" | "tablets" | "tag" | "tags" | "tally-1" | "tally-2" | "tally-3" | "tally-4" | "tally-5" | "tangent" | "target" | "telescope" | "tent" | "tent-tree" | "terminal" | "terminal-square" | "test-tube" | "test-tube-2" | "test-tube-diagonal" | "test-tubes" | "text" | "text-cursor" | "text-cursor-input" | "text-quote" | "text-search" | "text-select" | "text-selection" | "theater" | "thermometer" | "thermometer-snowflake" | "thermometer-sun" | "thumbs-down" | "thumbs-up" | "ticket" | "ticket-check" | "ticket-minus" | "ticket-percent" | "ticket-plus" | "ticket-slash" | "ticket-x" | "tickets" | "tickets-plane" | "timer" | "timer-off" | "timer-reset" | "toggle-left" | "toggle-right" | "toilet" | "tornado" | "torus" | "touchpad" | "touchpad-off" | "tower-control" | "toy-brick" | "tractor" | "traffic-cone" | "train" | "train-front" | "train-front-tunnel" | "train-track" | "tram-front" | "transgender" | "trash" | "trash-2" | "tree-deciduous" | "tree-palm" | "tree-pine" | "trees" | "trello" | "trending-down" | "trending-up" | "trending-up-down" | "triangle" | "triangle-alert" | "triangle-dashed" | "triangle-right" | "trophy" | "truck" | "turtle" | "tv" | "tv-2" | "tv-minimal" | "tv-minimal-play" | "twitch" | "twitter" | "type" | "type-outline" | "umbrella" | "umbrella-off" | "underline" | "undo" | "undo-2" | "undo-dot" | "unfold-horizontal" | "unfold-vertical" | "ungroup" | "university" | "unlink" | "unlink-2" | "unlock" | "unlock-keyhole" | "unplug" | "upload" | "upload-cloud" | "usb" | "user" | "user-2" | "user-check" | "user-check-2" | "user-circle" | "user-circle-2" | "user-cog" | "user-cog-2" | "user-minus" | "user-minus-2" | "user-pen" | "user-plus" | "user-plus-2" | "user-round" | "user-round-check" | "user-round-cog" | "user-round-minus" | "user-round-pen" | "user-round-plus" | "user-round-search" | "user-round-x" | "user-search" | "user-square" | "user-square-2" | "user-x" | "user-x-2" | "users" | "users-2" | "users-round" | "utensils" | "utensils-crossed" | "utility-pole" | "variable" | "vault" | "vegan" | "venetian-mask" | "venus" | "venus-and-mars" | "verified" | "vibrate" | "vibrate-off" | "video" | "video-off" | "videotape" | "view" | "voicemail" | "volleyball" | "volume" | "volume-1" | "volume-2" | "volume-off" | "volume-x" | "vote" | "wallet" | "wallet-2" | "wallet-cards" | "wallet-minimal" | "wallpaper" | "wand" | "wand-2" | "wand-sparkles" | "warehouse" | "washing-machine" | "watch" | "waves" | "waves-ladder" | "waypoints" | "webcam" | "webhook" | "webhook-off" | "weight" | "wheat" | "wheat-off" | "whole-word" | "wifi" | "wifi-high" | "wifi-low" | "wifi-off" | "wifi-zero" | "wind" | "wind-arrow-down" | "wine" | "wine-off" | "workflow" | "worm" | "wrap-text" | "wrench" | "x" | "x-circle" | "x-octagon" | "x-square" | "youtube" | "zap" | "zap-off" | "zoom-in" | "zoom-out";
381
+
382
+ declare type InputSidebarItem = z.infer<typeof InputSidebarItemDocSchema> | z.infer<typeof InputSidebarItemLinkSchema> | z.infer<typeof InputSidebarItemCategorySchema>;
383
+
384
+ declare type InputSidebarItemCategory = z.infer<typeof BaseInputSidebarItemCategorySchema> & {
385
+ items: InputSidebarItem[];
386
+ };
387
+
388
+ declare const InputSidebarItemCategorySchema: z.ZodType<InputSidebarItemCategory>;
389
+
390
+ declare const InputSidebarItemDocSchema: z.ZodUnion<[z.ZodObject<{
391
+ type: z.ZodLiteral<"doc">;
392
+ id: z.ZodString;
393
+ icon: z.ZodOptional<z.ZodType<IconNames, z.ZodTypeDef, IconNames>>;
394
+ label: z.ZodOptional<z.ZodString>;
395
+ badge: z.ZodOptional<z.ZodObject<{
396
+ label: z.ZodString;
397
+ color: z.ZodEnum<["green", "blue", "yellow", "red", "purple", "indigo", "gray", "outline"]>;
398
+ placement: z.ZodOptional<z.ZodEnum<["start", "end"]>>;
399
+ invert: z.ZodOptional<z.ZodBoolean>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ label: string;
402
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray" | "outline";
403
+ placement?: "start" | "end" | undefined;
404
+ invert?: boolean | undefined;
405
+ }, {
406
+ label: string;
407
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray" | "outline";
408
+ placement?: "start" | "end" | undefined;
409
+ invert?: boolean | undefined;
410
+ }>>;
411
+ }, "strip", z.ZodTypeAny, {
412
+ type: "doc";
413
+ id: string;
414
+ badge?: {
415
+ label: string;
416
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray" | "outline";
417
+ placement?: "start" | "end" | undefined;
418
+ invert?: boolean | undefined;
419
+ } | undefined;
420
+ label?: string | undefined;
421
+ icon?: IconNames | undefined;
422
+ }, {
423
+ type: "doc";
424
+ id: string;
425
+ badge?: {
426
+ label: string;
427
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray" | "outline";
428
+ placement?: "start" | "end" | undefined;
429
+ invert?: boolean | undefined;
430
+ } | undefined;
431
+ label?: string | undefined;
432
+ icon?: IconNames | undefined;
433
+ }>, z.ZodString]>;
434
+
435
+ declare type InputSidebarItemLink = z.infer<typeof InputSidebarItemLinkSchema>;
436
+
437
+ declare const InputSidebarItemLinkSchema: z.ZodObject<{
438
+ type: z.ZodLiteral<"link">;
439
+ label: z.ZodString;
440
+ href: z.ZodString;
441
+ description: z.ZodOptional<z.ZodString>;
442
+ badge: z.ZodOptional<z.ZodObject<{
443
+ label: z.ZodString;
444
+ color: z.ZodEnum<["green", "blue", "yellow", "red", "purple", "indigo", "gray", "outline"]>;
445
+ placement: z.ZodOptional<z.ZodEnum<["start", "end"]>>;
446
+ invert: z.ZodOptional<z.ZodBoolean>;
447
+ }, "strip", z.ZodTypeAny, {
448
+ label: string;
449
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray" | "outline";
450
+ placement?: "start" | "end" | undefined;
451
+ invert?: boolean | undefined;
452
+ }, {
453
+ label: string;
454
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray" | "outline";
455
+ placement?: "start" | "end" | undefined;
456
+ invert?: boolean | undefined;
457
+ }>>;
458
+ }, "strip", z.ZodTypeAny, {
459
+ type: "link";
460
+ label: string;
461
+ href: string;
462
+ description?: string | undefined;
463
+ badge?: {
464
+ label: string;
465
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray" | "outline";
466
+ placement?: "start" | "end" | undefined;
467
+ invert?: boolean | undefined;
468
+ } | undefined;
469
+ }, {
470
+ type: "link";
471
+ label: string;
472
+ href: string;
473
+ description?: string | undefined;
474
+ badge?: {
475
+ label: string;
476
+ color: "green" | "blue" | "yellow" | "red" | "purple" | "indigo" | "gray" | "outline";
477
+ placement?: "start" | "end" | undefined;
478
+ invert?: boolean | undefined;
479
+ } | undefined;
480
+ }>;
481
+
482
+ export declare const Layout: ({ children }: {
483
+ children?: ReactNode;
484
+ }) => JSX.Element;
485
+
486
+ export declare const Link: ForwardRefExoticComponent<LinkProps & RefAttributes<HTMLAnchorElement>>;
487
+
488
+ export declare const Markdown: MemoExoticComponent<({ content, className, components, }: {
489
+ content: string;
490
+ className?: string;
491
+ components?: Components;
492
+ }) => JSX.Element>;
493
+
494
+ declare type MdxComponentsType = Readonly<MDXComponents> | null | undefined;
495
+
496
+ declare type Metadata = Partial<{
497
+ title: string;
498
+ description: string;
499
+ logo: string;
500
+ favicon: string;
501
+ generator: string;
502
+ applicationName: string;
503
+ referrer: string;
504
+ keywords: string[];
505
+ authors: string[];
506
+ creator: string;
507
+ publisher: string;
508
+ }>;
509
+
510
+ declare interface NavigationPlugin {
511
+ getRoutes: () => RouteObject[];
512
+ getSidebar?: (path: string, context: ZudokuContext) => Promise<Sidebar>;
513
+ getProtectedRoutes?: () => string[];
514
+ }
515
+
516
+ declare type Page = Partial<{
517
+ dir?: "ltr" | "rtl";
518
+ showPoweredBy?: boolean;
519
+ pageTitle?: string;
520
+ logo?: {
521
+ src: {
522
+ light: string;
523
+ dark: string;
524
+ };
525
+ width?: string | number;
526
+ alt?: string;
527
+ };
528
+ banner?: {
529
+ message: ReactNode;
530
+ color?: "note" | "tip" | "info" | "caution" | "danger" | (string & {});
531
+ dismissible?: boolean;
532
+ };
533
+ footer?: z.infer<typeof FooterSchema>;
534
+ }>;
535
+
536
+ declare interface ProfileMenuPlugin {
537
+ getProfileMenuItems: (context: ZudokuContext) => ProfileNavigationItem[];
538
+ }
539
+
540
+ declare type ProfileNavigationItem = {
541
+ label: string;
542
+ path?: string;
543
+ weight?: number;
544
+ category?: "top" | "middle" | "bottom";
545
+ children?: ProfileNavigationItem[];
546
+ icon?: LucideIcon;
547
+ };
548
+
549
+ export declare const RouteGuard: () => JSX.Element;
550
+
551
+ export declare const RouterError: typeof RouterError_2;
552
+
553
+ declare function RouterError_2(): JSX.Element;
554
+
555
+ declare interface SearchProviderPlugin {
556
+ renderSearch: (o: {
557
+ isOpen: boolean;
558
+ onClose: () => void;
559
+ }) => React.JSX.Element | null;
560
+ }
561
+
562
+ export declare const ServerError: typeof ServerError_2;
563
+
564
+ declare function ServerError_2({ error }: {
565
+ error: unknown;
566
+ }): JSX.Element;
567
+
568
+ declare type Sidebar = SidebarItem[];
569
+
570
+ declare type SidebarConfig = Record<string, Sidebar>;
571
+
572
+ declare type SidebarItem = SidebarItemDoc | SidebarItemLink | SidebarItemCategory;
573
+
574
+ declare type SidebarItemCategory = Omit<InputSidebarItemCategory, "items" | "link" | "icon"> & {
575
+ items: SidebarItem[];
576
+ link?: SidebarItemCategoryLinkDoc;
577
+ icon?: LucideIcon | string;
578
+ };
579
+
580
+ declare type SidebarItemCategoryLinkDoc = BaseInputSidebarItemCategoryLinkDoc & {
581
+ label: string;
582
+ icon?: LucideIcon | string;
583
+ };
584
+
585
+ declare type SidebarItemDoc = Omit<BaseInputSidebarItemDoc, "icon"> & {
586
+ label: string;
587
+ categoryLabel?: string;
588
+ icon?: LucideIcon | string;
589
+ };
590
+
591
+ declare type SidebarItemLink = InputSidebarItemLink & {
592
+ icon?: LucideIcon | string;
593
+ };
594
+
595
+ declare type SlotType = ReactNode | ComponentType<ExposedComponentProps>;
596
+
597
+ export declare const Spinner: ({ size }: {
598
+ size?: number;
599
+ }) => JSX.Element;
600
+
601
+ export declare const StatusPage: ({ statusCode, message }: {
602
+ statusCode: number;
603
+ message?: ReactNode;
604
+ }) => JSX.Element;
605
+
606
+ declare type TopNavigationItem = z.infer<typeof TopNavigationItemSchema>;
607
+
608
+ declare const TopNavigationItemSchema: z.ZodObject<{
609
+ label: z.ZodString;
610
+ id: z.ZodString;
611
+ default: z.ZodOptional<z.ZodString>;
612
+ display: z.ZodOptional<z.ZodDefault<z.ZodEnum<["auth", "anon", "always", "hide"]>>>;
613
+ }, "strip", z.ZodTypeAny, {
614
+ id: string;
615
+ label: string;
616
+ default?: string | undefined;
617
+ display?: "auth" | "anon" | "always" | "hide" | undefined;
618
+ }, {
619
+ id: string;
620
+ label: string;
621
+ default?: string | undefined;
622
+ display?: "auth" | "anon" | "always" | "hide" | undefined;
623
+ }>;
624
+
625
+ /** @deprecated Import from `zudoku/hooks` instead */
626
+ export declare const useAuth: () => {
627
+ login: () => Promise<void>;
628
+ logout: () => Promise<void>;
629
+ signup: () => Promise<void>;
630
+ isAuthenticated: boolean;
631
+ isPending: boolean;
632
+ profile: UserProfile | null;
633
+ providerData: unknown;
634
+ isAuthEnabled: boolean;
635
+ };
636
+
637
+ /** @deprecated Import from `zudoku/hooks` instead */
638
+ export declare const useCache: () => {
639
+ invalidateCache: (key: keyof typeof CACHE_KEYS_2) => Promise<void>;
640
+ };
641
+
642
+ /** @deprecated Import from `zudoku/hooks` instead */
643
+ export declare const useMDXComponents: typeof useMDXComponents_2;
644
+
645
+ declare interface UserProfile {
646
+ sub: string;
647
+ email: string | undefined;
648
+ emailVerified: boolean;
649
+ name: string | undefined;
650
+ pictureUrl: string | undefined;
651
+ [key: string]: string | boolean | undefined;
652
+ }
653
+
654
+ /** @deprecated Import from `zudoku/hooks` instead */
655
+ export declare const useTheme: () => UseThemeProps;
656
+
657
+ /** @deprecated Import from `zudoku/hooks` instead */
658
+ export declare const useZudoku: () => ZudokuContext;
659
+
660
+ export declare const Zudoku: {
661
+ (props: ZudokuContextOptions): JSX.Element;
662
+ displayName: string;
663
+ };
664
+
665
+ declare class ZudokuContext {
666
+ plugins: NonNullable<ZudokuContextOptions["plugins"]>;
667
+ sidebars: SidebarConfig;
668
+ topNavigation: NonNullable<ZudokuContextOptions["topNavigation"]>;
669
+ meta: ZudokuContextOptions["metadata"];
670
+ page: ZudokuContextOptions["page"];
671
+ readonly authentication?: ZudokuContextOptions["authentication"];
672
+ readonly queryClient: QueryClient;
673
+ readonly options: ZudokuContextOptions;
674
+ private readonly navigationPlugins;
675
+ private emitter;
676
+ constructor(options: ZudokuContextOptions, queryClient: QueryClient);
677
+ initialize: () => Promise<void>;
678
+ getApiIdentities: () => Promise<ApiIdentity[]>;
679
+ addEventListener<E extends keyof ZudokuEvents>(event: E, callback: ZudokuEvents[E]): Unsubscribe;
680
+ emitEvent: <E extends keyof ZudokuEvents>(event: E, ...data: Parameters<ZudokuEvents[E]>) => void;
681
+ getPluginSidebar: (path: string) => Promise<SidebarItem[]>;
682
+ signRequest: (request: Request) => Promise<Request>;
683
+ }
684
+
685
+ declare type ZudokuContextOptions = {
686
+ basePath?: string;
687
+ canonicalUrlOrigin?: string;
688
+ metadata?: Metadata;
689
+ page?: Page;
690
+ authentication?: AuthenticationPlugin;
691
+ topNavigation?: TopNavigationItem[];
692
+ sidebars?: SidebarConfig;
693
+ plugins?: ZudokuPlugin[];
694
+ slots?: Record<string, SlotType>;
695
+ /**
696
+ * @deprecated Use `slots` instead
697
+ */
698
+ UNSAFE_slotlets?: Record<string, SlotType>;
699
+ mdx?: {
700
+ components?: MdxComponentsType;
701
+ };
702
+ overrides?: ComponentsContextType;
703
+ protectedRoutes?: string[];
704
+ syntaxHighlighting?: {
705
+ highlighter: HighlighterCore;
706
+ themes?: {
707
+ light: BundledTheme;
708
+ dark: BundledTheme;
709
+ };
710
+ };
711
+ };
712
+
713
+ declare interface ZudokuEvents {
714
+ location: (event: {
715
+ from?: Location_2;
716
+ to: Location_2;
717
+ }) => void;
718
+ auth: (auth: {
719
+ prev: AuthState;
720
+ next: AuthState;
721
+ }) => void;
722
+ }
723
+
724
+ declare type ZudokuPlugin = CommonPlugin | ProfileMenuPlugin | NavigationPlugin | ApiIdentityPlugin | SearchProviderPlugin | EventConsumerPlugin | AuthenticationPlugin;
725
+
726
+ export { }