@koine/next 1.0.0 → 1.0.3

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 (67) hide show
  1. package/Analytics/AnalyticsGoogle.d.ts +6 -0
  2. package/Analytics/index.d.ts +1 -0
  3. package/Auth/helpers.d.ts +17 -0
  4. package/Auth/index.d.ts +4 -0
  5. package/Auth/useLogin.d.ts +7 -0
  6. package/Auth/useLoginUrl.d.ts +1 -0
  7. package/Auth/useLogout.d.ts +6 -0
  8. package/Favicon/Favicon.d.ts +4 -0
  9. package/Favicon/index.d.ts +1 -0
  10. package/Forms/index.d.ts +2 -0
  11. package/Forms/useForm.d.ts +32 -0
  12. package/Forms/useSubmit.d.ts +24 -0
  13. package/Head/Head.d.ts +1 -0
  14. package/Head/index.d.ts +1 -0
  15. package/I18n/I18n.d.ts +48 -0
  16. package/I18n/index.d.ts +1 -0
  17. package/Img/Img.d.ts +21 -0
  18. package/Img/index.d.ts +1 -0
  19. package/Link/Link.d.ts +8 -0
  20. package/Link/index.d.ts +1 -0
  21. package/NextProgress/NextProgress.d.ts +14 -0
  22. package/NextProgress/index.d.ts +1 -0
  23. package/Seo/Seo.d.ts +3 -0
  24. package/Seo/SeoDefaults.d.ts +3 -0
  25. package/Seo/helpers.d.ts +48 -0
  26. package/Seo/index.d.ts +12 -0
  27. package/Theme/Theme.d.ts +46 -0
  28. package/Theme/index.d.ts +1 -0
  29. package/Theme.js +1905 -0
  30. package/_tslib.js +41 -0
  31. package/app/App--emotion.d.ts +10 -0
  32. package/app/App--sc.d.ts +10 -0
  33. package/app/App--vanilla.d.ts +10 -0
  34. package/app/AppAuth--emotion.d.ts +10 -0
  35. package/app/AppAuth--sc.d.ts +10 -0
  36. package/app/AppHead.d.ts +3 -0
  37. package/app/AppMain--vanilla.d.ts +27 -0
  38. package/app/AppMain.d.ts +34 -0
  39. package/app/AppTheme--emotion.d.ts +15 -0
  40. package/app/AppTheme--sc.d.ts +13 -0
  41. package/app/AppTheme--vanilla.d.ts +10 -0
  42. package/app/index.d.ts +11 -0
  43. package/app/motion-features.d.ts +2 -0
  44. package/app.js +250 -0
  45. package/config/index.d.ts +58 -0
  46. package/config.js +183 -0
  47. package/document/Document--emotion.d.ts +5 -0
  48. package/document/Document--sc.d.ts +11 -0
  49. package/document/Document--vanilla.d.ts +11 -0
  50. package/document/Document.d.ts +10 -0
  51. package/document/emotion.d.ts +5 -0
  52. package/document/index.d.ts +4 -0
  53. package/document.js +207 -0
  54. package/emotion.js +1329 -0
  55. package/es.object.assign.js +1074 -0
  56. package/es.string.replace.js +785 -0
  57. package/es.string.split.js +201 -0
  58. package/index.d.ts +12 -0
  59. package/index.esm.js +4437 -4406
  60. package/index.js +743 -0
  61. package/index.umd.js +4635 -4623
  62. package/motion-features.js +10 -0
  63. package/package.json +17 -10
  64. package/types.d.ts +91 -0
  65. package/utils/api.d.ts +55 -0
  66. package/utils/index.d.ts +19 -0
  67. package/motion-features.esm.js +0 -2
package/_tslib.js ADDED
@@ -0,0 +1,41 @@
1
+ 'use strict';
2
+
3
+ /*! *****************************************************************************
4
+ Copyright (c) Microsoft Corporation.
5
+
6
+ Permission to use, copy, modify, and/or distribute this software for any
7
+ purpose with or without fee is hereby granted.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
10
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
12
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
14
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15
+ PERFORMANCE OF THIS SOFTWARE.
16
+ ***************************************************************************** */
17
+
18
+ function __rest(s, e) {
19
+ var t = {};
20
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
21
+ t[p] = s[p];
22
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
23
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
24
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
25
+ t[p[i]] = s[p[i]];
26
+ }
27
+ return t;
28
+ }
29
+
30
+ function __awaiter(thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ }
39
+
40
+ exports.__awaiter = __awaiter;
41
+ exports.__rest = __rest;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { AppProps as NextAppProps } from "next/app";
3
+ import { AppThemeEmotionProps } from "./AppTheme--emotion";
4
+ import { AppMainProps } from "./AppMain";
5
+ export declare type AppEmotionProps = NextAppProps & AppThemeEmotionProps & AppMainProps;
6
+ /**
7
+ * App
8
+ */
9
+ export declare const AppEmotion: React.FC<AppEmotionProps>;
10
+ export default AppEmotion;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { AppProps as NextAppProps } from "next/app";
3
+ import { AppThemeScProps } from "./AppTheme--sc";
4
+ import { AppMainProps } from "./AppMain";
5
+ export declare type AppBaseProps = NextAppProps & AppThemeScProps & AppMainProps;
6
+ /**
7
+ * App
8
+ */
9
+ export declare const AppBase: React.FC<AppBaseProps>;
10
+ export default AppBase;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { AppProps as NextAppProps } from "next/app";
3
+ import { AppThemeVanillaProps } from "./AppTheme--vanilla";
4
+ import { AppMainVanillaProps } from "./AppMain--vanilla";
5
+ export declare type AppVanillaProps = NextAppProps & AppThemeVanillaProps & AppMainVanillaProps;
6
+ /**
7
+ * App
8
+ */
9
+ export declare const AppVanilla: React.FC<AppVanillaProps>;
10
+ export default AppVanilla;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { AppProps as NextAppProps } from "next/app";
3
+ import { AppThemeEmotionProps } from "./AppTheme--emotion";
4
+ import { AppMainProps } from "./AppMain";
5
+ export declare type AppAuthEmotionProps = NextAppProps & AppThemeEmotionProps & AppMainProps;
6
+ /**
7
+ * App with authentication provided by `next-auth`
8
+ */
9
+ export declare const AppAuthEmotion: React.FC<AppAuthEmotionProps>;
10
+ export default AppAuthEmotion;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { AppProps as NextAppProps } from "next/app";
3
+ import { AppThemeScProps } from "./AppTheme--sc";
4
+ import { AppMainProps } from "./AppMain";
5
+ export declare type AppAuthScProps = NextAppProps & AppThemeScProps & AppMainProps;
6
+ /**
7
+ * App with authentication provided by `next-auth`
8
+ */
9
+ export declare const AppAuthSc: React.FC<AppAuthScProps>;
10
+ export default AppAuthSc;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ export declare type AppHeadProps = unknown;
3
+ export declare const AppHead: React.FC<AppHeadProps>;
@@ -0,0 +1,27 @@
1
+ import React from "react";
2
+ import { AppProps as NextAppProps } from "next/app";
3
+ import { SeoDefaultsProps } from "../Seo";
4
+ export declare type AppMainVanillaProps = NextAppProps & {
5
+ /**
6
+ * A wrapping layout component
7
+ */
8
+ Layout: React.FC<Record<string, unknown>>;
9
+ /**
10
+ * Seo site wide default configuration
11
+ */
12
+ seo?: SeoDefaultsProps;
13
+ /**
14
+ * JSX to render just after SEO
15
+ */
16
+ pre?: React.ReactNode;
17
+ /**
18
+ * JSX to render just at the end of the markup
19
+ */
20
+ post?: React.ReactNode;
21
+ };
22
+ /**
23
+ * App main
24
+ *
25
+ * It does not imply any specific styling or animation solution
26
+ */
27
+ export declare const AppMainVanilla: React.FC<AppMainVanillaProps>;
@@ -0,0 +1,34 @@
1
+ import React from "react";
2
+ import { AppProps as NextAppProps } from "next/app";
3
+ import { HTMLMotionProps } from "framer-motion";
4
+ import { SeoDefaultsProps } from "../Seo";
5
+ export declare type AppMainProps = NextAppProps & {
6
+ /**
7
+ * A wrapping layout component
8
+ */
9
+ Layout: React.FC<Record<string, unknown>>;
10
+ /**
11
+ * Seo site wide default configuration
12
+ */
13
+ seo?: SeoDefaultsProps;
14
+ /**
15
+ * It defaults to fade in/out
16
+ */
17
+ transition?: Omit<HTMLMotionProps<"div">, "key">;
18
+ /**
19
+ * JSX to render just after SEO
20
+ */
21
+ pre?: React.ReactNode;
22
+ /**
23
+ * JSX to render just at the end of the markup
24
+ */
25
+ post?: React.ReactNode;
26
+ };
27
+ /**
28
+ * App main
29
+ *
30
+ * It implies a setup for `styled-components` and `framer-motion` libraries.
31
+ *
32
+ * About the page transition [wallis' blog post](https://wallis.dev/blog/nextjs-page-transitions-with-framer-motion)
33
+ */
34
+ export declare const AppMain: React.FC<AppMainProps>;
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import { AppProps as NextAppProps } from "next/app";
3
+ import { Theme } from "@mui/material/styles";
4
+ import { EmotionCache } from "@emotion/react";
5
+ export declare type AppThemeEmotionProps = NextAppProps & {
6
+ emotionCache?: EmotionCache;
7
+ /**
8
+ * A theme object
9
+ */
10
+ theme: Theme;
11
+ };
12
+ /**
13
+ * App theme with `emotion` (good for `@mui`)s
14
+ */
15
+ export declare const AppThemeEmotion: React.FC<AppThemeEmotionProps>;
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import { AppProps as NextAppProps } from "next/app";
3
+ import { Theme } from "@koine/react";
4
+ export declare type AppThemeScProps = NextAppProps & {
5
+ /**
6
+ * A theme object
7
+ */
8
+ theme: Theme;
9
+ };
10
+ /**
11
+ * App theme with `styled-components`
12
+ */
13
+ export declare const AppThemeSc: React.FC<AppThemeScProps>;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { AppProps as NextAppProps } from "next/app";
3
+ import { ThemeProviderProps } from "../Theme";
4
+ export declare type AppThemeVanillaProps = NextAppProps & {
5
+ theme: ThemeProviderProps["defaultTheme"];
6
+ };
7
+ /**
8
+ * App theme with vanilla class based theme (good for `tailwindcss`)
9
+ */
10
+ export declare const AppThemeVanilla: React.FC<AppThemeVanillaProps>;
package/app/index.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ export * from "./App--emotion";
2
+ export * from "./App--sc";
3
+ export * from "./App--vanilla";
4
+ export * from "./AppAuth--emotion";
5
+ export * from "./AppAuth--sc";
6
+ export * from "./AppHead";
7
+ export * from "./AppMain";
8
+ export * from "./AppMain--vanilla";
9
+ export * from "./AppTheme--emotion";
10
+ export * from "./AppTheme--sc";
11
+ export * from "./AppTheme--vanilla";
@@ -0,0 +1,2 @@
1
+ import { domMax } from "framer-motion";
2
+ export default domMax;
package/app.js ADDED
@@ -0,0 +1,250 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('./es.object.assign.js');
6
+ var jsxRuntime = require('react/jsx-runtime');
7
+ var React = require('react');
8
+ var Head = require('next/head');
9
+ var styles = require('@mui/material/styles');
10
+ var react = require('@emotion/react');
11
+ var CssBaseline = require('@mui/material/CssBaseline');
12
+ var react$1 = require('@koine/react');
13
+ var emotion = require('./emotion.js');
14
+ var Theme = require('./Theme.js');
15
+ var router = require('next/router');
16
+ var framerMotion = require('framer-motion');
17
+ require('./es.string.replace.js');
18
+ require('@koine/utils');
19
+ var styledComponents = require('styled-components');
20
+ var react$2 = require('next-auth/react');
21
+ require('next/script');
22
+
23
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
24
+
25
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
26
+ var Head__default = /*#__PURE__*/_interopDefaultLegacy(Head);
27
+ var CssBaseline__default = /*#__PURE__*/_interopDefaultLegacy(CssBaseline);
28
+
29
+ const AppHead = props => {
30
+ return jsxRuntime.jsx(Head__default["default"], Object.assign({}, props, {
31
+ children: jsxRuntime.jsx("meta", {
32
+ name: "viewport",
33
+ content: "width=device-width"
34
+ })
35
+ }));
36
+ };
37
+
38
+ let _ = t => t,
39
+ _t;
40
+
41
+ const clientSideEmotionCache = emotion.createEmotionCache();
42
+ /**
43
+ * App theme with `emotion` (good for `@mui`)s
44
+ */
45
+
46
+ const AppThemeEmotion = ({
47
+ emotionCache: _emotionCache = clientSideEmotionCache,
48
+ theme,
49
+ children
50
+ }) => {
51
+ return jsxRuntime.jsx(react.CacheProvider, Object.assign({
52
+ value: _emotionCache
53
+ }, {
54
+ children: jsxRuntime.jsxs(styles.ThemeProvider, Object.assign({
55
+ theme: theme
56
+ }, {
57
+ children: [jsxRuntime.jsx(CssBaseline__default["default"], {}), jsxRuntime.jsx(react.Global, {
58
+ styles: react.css(_t || (_t = _`
59
+ ${0}
60
+ `), react$1.stylesGlobal)
61
+ }), children]
62
+ }))
63
+ }));
64
+ };
65
+
66
+ /**
67
+ * @see https://www.framer.com/docs/guide-reduce-bundle-size/
68
+ */
69
+
70
+ const loadMotionFeatures = () => Promise.resolve().then(function () { return require('./motion-features.js'); }).then(m => m.default);
71
+ /**
72
+ * App main
73
+ *
74
+ * It implies a setup for `styled-components` and `framer-motion` libraries.
75
+ *
76
+ * About the page transition [wallis' blog post](https://wallis.dev/blog/nextjs-page-transitions-with-framer-motion)
77
+ */
78
+
79
+
80
+ const AppMain = ({
81
+ Component,
82
+ pageProps,
83
+ Layout,
84
+ // theme,
85
+ seo,
86
+ transition: _transition = {
87
+ initial: {
88
+ opacity: 0
89
+ },
90
+ animate: {
91
+ opacity: 1
92
+ },
93
+ exit: {
94
+ opacity: 0
95
+ }
96
+ },
97
+ pre,
98
+ post
99
+ }) => {
100
+ const {
101
+ pathname
102
+ } = router.useRouter();
103
+ return jsxRuntime.jsxs(framerMotion.LazyMotion, Object.assign({
104
+ features: loadMotionFeatures
105
+ }, {
106
+ children: [jsxRuntime.jsx(Theme.SeoDefaults, Object.assign({}, seo)), pre, jsxRuntime.jsx(Theme.NextProgress, {}), jsxRuntime.jsx(Layout, {
107
+ children: jsxRuntime.jsx(framerMotion.AnimatePresence, Object.assign({
108
+ exitBeforeEnter: true,
109
+ initial: false
110
+ }, {
111
+ children: jsxRuntime.jsx(framerMotion.m.div, Object.assign({}, _transition, {
112
+ children: /*#__PURE__*/React.createElement(Component, Object.assign({}, pageProps, {
113
+ key: pathname
114
+ }))
115
+ }), pathname)
116
+ }))
117
+ }), post]
118
+ }));
119
+ };
120
+
121
+ /**
122
+ * App
123
+ */
124
+
125
+ const AppEmotion = props => {
126
+ return jsxRuntime.jsxs(React__default["default"].Fragment, {
127
+ children: [jsxRuntime.jsx(AppHead, {}), jsxRuntime.jsx(AppThemeEmotion, Object.assign({}, props, {
128
+ children: jsxRuntime.jsx(AppMain, Object.assign({}, props))
129
+ }))]
130
+ });
131
+ };
132
+
133
+ /**
134
+ * App theme with `styled-components`
135
+ */
136
+
137
+ const AppThemeSc = ({
138
+ theme,
139
+ children
140
+ }) => {
141
+ return jsxRuntime.jsxs(styledComponents.ThemeProvider, Object.assign({
142
+ theme: theme
143
+ }, {
144
+ children: [jsxRuntime.jsx(react$1.StylesGlobal, {}), children]
145
+ }));
146
+ };
147
+
148
+ /**
149
+ * App
150
+ */
151
+
152
+ const AppBase = props => {
153
+ return jsxRuntime.jsxs(React__default["default"].Fragment, {
154
+ children: [jsxRuntime.jsx(AppHead, {}), jsxRuntime.jsx(AppThemeSc, Object.assign({}, props, {
155
+ children: jsxRuntime.jsx(AppMain, Object.assign({}, props))
156
+ }))]
157
+ });
158
+ };
159
+
160
+ /**
161
+ * App theme with vanilla class based theme (good for `tailwindcss`)
162
+ */
163
+
164
+ const AppThemeVanilla = ({
165
+ theme,
166
+ children
167
+ }) => {
168
+ // return (
169
+ // <ThemeVanillaProvider initialTheme={theme}>{children}</ThemeVanillaProvider>
170
+ // );
171
+ return jsxRuntime.jsx(Theme.ThemeProvider, Object.assign({
172
+ defaultTheme: theme,
173
+ attribute: "class"
174
+ }, {
175
+ children: children
176
+ }));
177
+ };
178
+
179
+ /**
180
+ * App main
181
+ *
182
+ * It does not imply any specific styling or animation solution
183
+ */
184
+
185
+ const AppMainVanilla = ({
186
+ Component,
187
+ pageProps,
188
+ Layout,
189
+ seo,
190
+ pre,
191
+ post
192
+ }) => {
193
+ return jsxRuntime.jsxs(React__default["default"].Fragment, {
194
+ children: [jsxRuntime.jsx(Theme.SeoDefaults, Object.assign({}, seo)), pre, jsxRuntime.jsx(Layout, {
195
+ children: jsxRuntime.jsx(Component, Object.assign({}, pageProps))
196
+ }), post]
197
+ });
198
+ };
199
+
200
+ /**
201
+ * App
202
+ */
203
+
204
+ const AppVanilla = props => {
205
+ return jsxRuntime.jsxs(React__default["default"].Fragment, {
206
+ children: [jsxRuntime.jsx(AppHead, {}), jsxRuntime.jsx(AppThemeVanilla, Object.assign({}, props, {
207
+ children: jsxRuntime.jsx(AppMainVanilla, Object.assign({}, props))
208
+ }))]
209
+ });
210
+ };
211
+
212
+ /**
213
+ * App with authentication provided by `next-auth`
214
+ */
215
+
216
+ const AppAuthEmotion = props => {
217
+ return jsxRuntime.jsxs(react$2.SessionProvider, Object.assign({
218
+ session: props.pageProps.session
219
+ }, {
220
+ children: [jsxRuntime.jsx(AppHead, {}), jsxRuntime.jsx(AppThemeEmotion, Object.assign({}, props, {
221
+ children: jsxRuntime.jsx(AppMain, Object.assign({}, props))
222
+ }))]
223
+ }));
224
+ };
225
+
226
+ /**
227
+ * App with authentication provided by `next-auth`
228
+ */
229
+
230
+ const AppAuthSc = props => {
231
+ return jsxRuntime.jsxs(react$2.SessionProvider, Object.assign({
232
+ session: props.pageProps.session
233
+ }, {
234
+ children: [jsxRuntime.jsx(AppHead, {}), jsxRuntime.jsx(AppThemeSc, Object.assign({}, props, {
235
+ children: jsxRuntime.jsx(AppMain, Object.assign({}, props))
236
+ }))]
237
+ }));
238
+ };
239
+
240
+ exports.AppAuthEmotion = AppAuthEmotion;
241
+ exports.AppAuthSc = AppAuthSc;
242
+ exports.AppBase = AppBase;
243
+ exports.AppEmotion = AppEmotion;
244
+ exports.AppHead = AppHead;
245
+ exports.AppMain = AppMain;
246
+ exports.AppMainVanilla = AppMainVanilla;
247
+ exports.AppThemeEmotion = AppThemeEmotion;
248
+ exports.AppThemeSc = AppThemeSc;
249
+ exports.AppThemeVanilla = AppThemeVanilla;
250
+ exports.AppVanilla = AppVanilla;
@@ -0,0 +1,58 @@
1
+ import type { NextConfig } from "next";
2
+ import type { Redirect, Rewrite } from "next/dist/lib/load-custom-routes";
3
+ /**
4
+ * Normalise pathname
5
+ *
6
+ * From a path like `/some//malformed/path///` it returns `some/malformed/path`
7
+ *
8
+ * - Removes subsequent slashes
9
+ * - Removing initial and ending slashes
10
+ */
11
+ export declare function normaliseUrlPathname(pathname: string): string;
12
+ /**
13
+ * Clean a pathname and encode each part
14
+ *
15
+ * @see {@link normaliseUrlPathname}
16
+ */
17
+ export declare function encodePathname(pathname: string): string;
18
+ /**
19
+ */
20
+ export declare function getPathRedirect(locale: string, localisedPathname: string, templateName: string, dynamic?: boolean, permanent?: boolean): {
21
+ source: string;
22
+ destination: string;
23
+ permanent: boolean;
24
+ locale: false;
25
+ };
26
+ /**
27
+ */
28
+ export declare function getPathRewrite(source: string, destination: string, dynamic?: boolean): {
29
+ source: string;
30
+ destination: string;
31
+ };
32
+ /**
33
+ */
34
+ export declare function getRedirects({ defaultLocale, routes, dynamicRoutes, permanent, }: {
35
+ defaultLocale: string;
36
+ routes: Record<string, string>;
37
+ dynamicRoutes: Record<string, boolean>;
38
+ permanent?: boolean;
39
+ }): Promise<Redirect[]>;
40
+ /**
41
+ */
42
+ export declare function getRewrites({ routes, dynamicRoutes, }: {
43
+ routes: Record<string, string>;
44
+ dynamicRoutes: Record<string, boolean>;
45
+ }): Promise<Rewrite[]>;
46
+ declare type KoineNextConfig = {
47
+ /** @default true Nx monorepo setup */
48
+ nx?: boolean;
49
+ /** @default true Svg to react components */
50
+ svg?: boolean;
51
+ /** @default true Styled components enabled */
52
+ sc?: boolean;
53
+ };
54
+ /**
55
+ * Get Next.js config with some basic opinionated defaults
56
+ */
57
+ export declare function withKoine({ nx, svg, sc, ...nextConfig }?: NextConfig & KoineNextConfig): NextConfig;
58
+ export default withKoine;