@asgardeo/vue 0.0.1 → 0.0.2

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,231 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { AsgardeoSPAClient, AuthClientConfig, BasicUserInfo, Config, IdToken, Hooks, HttpClientInstance, HttpRequestConfig, HttpResponse, OIDCEndpoints, SignInConfig, SPACustomGrantConfig } from '@asgardeo/auth-spa';
19
+ import { AuthStateInterface, AuthVueConfig } from './types';
20
+ declare class AuthAPI {
21
+ static DEFAULT_STATE: AuthStateInterface;
22
+ private _authState;
23
+ private _client;
24
+ constructor(spaClient?: AsgardeoSPAClient);
25
+ /**
26
+ * Method to return Auth Client instance authentication state.
27
+ *
28
+ * @return {AuthStateInterface} Authentication State.
29
+ */
30
+ getState: () => AuthStateInterface;
31
+ /**
32
+ * Initializes the AuthClient instance with the given authentication configuration.
33
+ *
34
+ * @param {AuthClientConfig<Config>} config - The authentication configuration object
35
+ * containing details such as client ID, redirect URLs, and base URL.
36
+ * @returns {Promise<boolean>} A promise that resolves to `true` if initialization is successful.
37
+ */
38
+ init: (config: AuthVueConfig) => Promise<boolean>;
39
+ /**
40
+ * Handles user sign-in by exchanging the authorization code for tokens
41
+ * and updating the authentication state if the user is authenticated.
42
+ *
43
+ * @param {SignInConfig} config - The sign-in configuration containing client-specific settings.
44
+ * @param {string} authorizationCode - The authorization code received from the authentication provider.
45
+ * @param {string} sessionState - The session state value to track the authentication session.
46
+ * @param {string} [authState] - An optional authentication state parameter for additional tracking.
47
+ * @param {{ params: Record<string, unknown> }} [tokenRequestConfig] - Optional token request parameters.
48
+ * @returns {Promise<BasicUserInfo>} A promise resolving to the authenticated user's basic information.
49
+ */
50
+ signIn: (config?: SignInConfig, authorizationCode?: string, sessionState?: string, authState?: string, callback?: (response: BasicUserInfo) => void, tokenRequestConfig?: {
51
+ params: Record<string, unknown>;
52
+ }) => Promise<BasicUserInfo>;
53
+ /**
54
+ * Signs the user out and resets the authentication state.
55
+ *
56
+ * @param {(response?: boolean) => void} callback - An optional callback function to execute after sign-out.
57
+ * @returns {Promise<boolean>} A promise resolving to `true` if sign-out is successful.
58
+ *
59
+ */
60
+ signOut: (callback?: (response?: boolean) => void) => Promise<boolean>;
61
+ /**
62
+ * Method to update Auth Client instance authentication state.
63
+ *
64
+ * @param {AuthStateInterface} state - State values to update in authentication state.
65
+ */
66
+ updateState(state: AuthStateInterface): void;
67
+ /**
68
+ * This method returns a Promise that resolves with the basic user information obtained from the ID token.
69
+ *
70
+ * @return {Promise<BasicUserInfo>} a promise that resolves with the user information.
71
+ */
72
+ getBasicUserInfo(): Promise<BasicUserInfo>;
73
+ /**
74
+ * This method sends an API request to a protected endpoint.
75
+ * The access token is automatically attached to the header of the request.
76
+ * This is the only way by which protected endpoints can be accessed
77
+ * when the web worker is used to store session information.
78
+ *
79
+ * @param {HttpRequestConfig} config - The config object containing attributes necessary to send a request.
80
+ *
81
+ * @return {Promise<Response>} - Returns a Promise that resolves with the response to the request.
82
+ */
83
+ httpRequest(config: HttpRequestConfig): Promise<HttpResponse<any>>;
84
+ /**
85
+ * This method sends multiple API requests to a protected endpoint.
86
+ * The access token is automatically attached to the header of the request.
87
+ * This is the only way by which multiple requests can be sent to protected endpoints
88
+ * when the web worker is used to store session information.
89
+ *
90
+ * @param {HttpRequestConfig[]} configs - The config object containing attributes necessary to send a request.
91
+ *
92
+ * @return {Promise<Response>} a Promise that resolves with the responses to the requests.
93
+ */
94
+ httpRequestAll(configs: HttpRequestConfig[]): Promise<HttpResponse<any>[]>;
95
+ /**
96
+ * This method allows you to send a request with a custom grant.
97
+ *
98
+ * @param {CustomGrantRequestParams} config - The request parameters.
99
+ * @param {(response: BasicUserInfo | Response) => void} [callback] - An optional callback function.
100
+ *
101
+ * @return {Promise<Response | SignInResponse>} a promise that resolves with
102
+ * the value returned by the custom grant request.
103
+ */
104
+ exchangeToken(config: SPACustomGrantConfig, callback?: (response: BasicUserInfo | Response) => void): Promise<BasicUserInfo | Response>;
105
+ /**
106
+ * This method ends a user session. The access token is revoked and the session information is destroyed.
107
+ *
108
+ * @return {Promise<boolean>} - A promise that resolves with `true` if the process is successful.
109
+ */
110
+ revokeAccessToken(): Promise<boolean>;
111
+ /**
112
+ * This method returns a Promise that resolves with an object containing the service endpoints.
113
+ *
114
+ * @return {Promise<ServiceResourcesType>} - A Promise that resolves with an object containing the service endpoints.
115
+ */
116
+ getOpenIDProviderEndpoints(): Promise<OIDCEndpoints>;
117
+ /**
118
+ * This methods returns the Axios http client.
119
+ *
120
+ * @return {HttpClientInstance} - The Axios HTTP client.
121
+ */
122
+ getHttpClient(): Promise<HttpClientInstance>;
123
+ /**
124
+ * This method decodes the payload of the id token and returns it.
125
+ *
126
+ * @return {Promise<DecodedIDTokenPayloadInterface>} - A Promise that resolves with
127
+ * the decoded payload of the id token.
128
+ */
129
+ getDecodedIdToken(): Promise<IdToken>;
130
+ /**
131
+ * This method decodes the payload of the idp id token and returns it.
132
+ * @remarks
133
+ * This method is intended for retrieving the IdP ID token when extending a plugin.
134
+ *
135
+ * @return {Promise<DecodedIDTokenPayloadInterface>} - A Promise that resolves with
136
+ * the decoded payload of the idp id token.
137
+ */
138
+ getDecodedIDPIDToken(): Promise<IdToken>;
139
+ /**
140
+ * This method returns the ID token.
141
+ *
142
+ * @return {Promise<string>} - A Promise that resolves with the id token.
143
+ */
144
+ getIdToken(): Promise<string>;
145
+ /**
146
+ * This method return a Promise that resolves with the access token.
147
+ *
148
+ * @remarks
149
+ * This method will not return the access token if the storage type is set to `webWorker`.
150
+ *
151
+ * @return {Promise<string>} - A Promise that resolves with the access token.
152
+ */
153
+ getAccessToken: () => Promise<string>;
154
+ /**
155
+ * This method returns a Promise that resolves with the IDP access token.
156
+ *
157
+ * @remarks
158
+ * This method will not return the IDP access token if the storage type is set to `webWorker`.
159
+ * It can be used to access the IDP access token when custom authentication grant functionalities are used.
160
+ *
161
+ * @return {Promise<string>} A Promise that resolves with the IDP access token.
162
+ */
163
+ getIDPAccessToken(): Promise<string>;
164
+ /**
165
+ * This method refreshes the access token.
166
+ *
167
+ * @return {BasicUserInfo} - A Promise that resolves with an object containing
168
+ * information about the refreshed access token.
169
+ */
170
+ refreshAccessToken(): Promise<BasicUserInfo>;
171
+ /**
172
+ * This method specifies if the user is authenticated or not.
173
+ *
174
+ * @return {Promise<boolean>} - A Promise that resolves with `true` if the user is authenticated.
175
+ */
176
+ isSignedIn(): Promise<boolean>;
177
+ /**
178
+ * This method specifies if the session is active or not.
179
+ *
180
+ * @return {Promise<boolean>} - A Promise that resolves with `true` if there is an active session.
181
+ */
182
+ isSessionActive(): Promise<boolean>;
183
+ /**
184
+ * This method enables callback functions attached to the http client.
185
+ *
186
+ * @return {Promise<boolean>} - A promise that resolves with `true`.
187
+ */
188
+ enableHttpHandler(): Promise<boolean>;
189
+ /**
190
+ * This method disables callback functions attached to the http client.
191
+ *
192
+ * @return {Promise<boolean>} - A promise that resolves with `true`.
193
+ */
194
+ disableHttpHandler(): Promise<boolean>;
195
+ /**
196
+ * This method updates the configuration that was passed into the constructor when instantiating this class.
197
+ *
198
+ * @param {Partial<AuthClientConfig<T>>} config - A config object to update the SDK configurations with.
199
+ */
200
+ reInitialize(config: Partial<AuthClientConfig<Config>>): Promise<void>;
201
+ /**
202
+ * This method attaches a callback function to an event hook that fires the callback when the event happens.
203
+ *
204
+ * @param {Hooks.CustomGrant} hook - The name of the hook.
205
+ * @param {(response?: any) => void} callback - The callback function.
206
+ * @param {string} id- Optional id for the hook. This is used when multiple custom grants are used.
207
+ *
208
+ */
209
+ on(hook: Hooks.CustomGrant, callback: (response?: any) => void, id: string): Promise<void>;
210
+ on(hook: Exclude<Hooks, Hooks.CustomGrant>, callback: (response?: any) => void): Promise<void>;
211
+ /**
212
+ * This method allows you to sign in silently.
213
+ * First, this method sends a prompt-none request to check for an active user session in the identity provider.
214
+ * If a session exists, it retrieves the access token and stores it. Otherwise, it returns `false`.
215
+ *
216
+ * @param {Record<string, string | boolean>} [additionalParams] - Optional additional parameters to be sent with the request.
217
+ * @param {{ params: Record<string, unknown> }} [tokenRequestConfig] - Optional configuration for the token request.
218
+ *
219
+ * @returns {Promise<BasicUserInfo | boolean>} A Promise that resolves with the user information after signing in,
220
+ * or `false` if the user is not signed in.
221
+ *
222
+ * @example
223
+ * ```
224
+ * client.trySignInSilently();
225
+ * ```
226
+ */
227
+ trySignInSilently(additionalParams?: Record<string, string | boolean>, tokenRequestConfig?: {
228
+ params: Record<string, unknown>;
229
+ }): Promise<BasicUserInfo | boolean>;
230
+ }
231
+ export default AuthAPI;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { AuthContextInterface } from '../types';
19
+ /**
20
+ * Hook to access the Asgardeo authentication context.
21
+ *
22
+ * @returns {AuthContextInterface} The authentication context containing authentication methods and state.
23
+ */
24
+ export declare function useAsgardeo(): AuthContextInterface;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { AuthContextInterface } from '../types';
19
+ /**
20
+ * Retrieves the Asgardeo authentication context from Vue's dependency injection system.
21
+ *
22
+ * @throws {Error} Throws an error if the Vue plugin is not installed.
23
+ * @returns {AuthContextInterface} The authentication context containing authentication methods and state.
24
+ */
25
+ export declare function useAsgardeoContext(): AuthContextInterface;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ export * from './public-api';
19
+ export * from './types';
20
+ export * from '@asgardeo/auth-spa';
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import type { Plugin } from 'vue';
19
+ import type { AuthVueConfig } from '../types';
20
+ export type AsgardeoPluginOptions = AuthVueConfig;
21
+ export declare const ASGARDEO_INJECTION_KEY: symbol;
22
+ export declare const asgardeoPlugin: Plugin;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ export { asgardeoPlugin } from './plugins/AsgardeoPlugin';
19
+ export { useAsgardeo } from './composables/useAsgardeo';
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { AsgardeoSPAClient } from '@asgardeo/auth-spa';
19
+ import { Mock } from 'vitest';
20
+ import { AuthContextInterface, AuthStateInterface, AuthVueConfig } from '../../types';
21
+ export declare const mockAuthContext: Partial<AuthContextInterface>;
22
+ export declare const mockState: AuthStateInterface;
23
+ export type MockAuthAPI = {
24
+ disableHttpHandler: Mock;
25
+ enableHttpHandler: Mock;
26
+ getAccessToken: Mock;
27
+ getUser: Mock;
28
+ getDecodedIdToken: Mock;
29
+ getHttpClient: Mock;
30
+ getIdToken: Mock;
31
+ getOpenIDProviderEndpoints: Mock;
32
+ getState: Mock;
33
+ httpRequest: Mock;
34
+ httpRequestAll: Mock;
35
+ init: Mock;
36
+ isSignedIn: Mock;
37
+ isSessionActive: Mock;
38
+ on: Mock;
39
+ refreshAccessToken: Mock;
40
+ exchangeToken: Mock;
41
+ revokeAccessToken: Mock;
42
+ signIn: Mock;
43
+ signOut: Mock;
44
+ trySignInSilently: Mock;
45
+ reInitialize: Mock;
46
+ updateState: Mock;
47
+ };
48
+ export declare const mockAuthAPI: MockAuthAPI;
49
+ export declare const mockAsgardeoSPAClient: Partial<AsgardeoSPAClient>;
50
+ export declare class MockAsgardeoAuthException extends Error {
51
+ code: string | undefined;
52
+ name: string;
53
+ message: string;
54
+ constructor(code: string, name: string, message: string);
55
+ }
56
+ export declare const asgardeoAuthSPAMock: any;
57
+ export declare const mockConfig: AuthVueConfig;
@@ -0,0 +1,107 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { AsgardeoAuthException, AuthClientConfig, AuthSPAClientConfig, BasicUserInfo, Config, TokenExchangeRequestConfig, IdToken, Hooks, HttpClientInstance, HttpRequestConfig, HttpResponse, OIDCEndpoints, SignInConfig } from '@asgardeo/auth-spa';
19
+ export interface VueConfig {
20
+ /**
21
+ * Prevents the SDK from automatically signing in the user if an active session exists.
22
+ */
23
+ disableAutoSignIn?: boolean;
24
+ /**
25
+ * The SDK attempts to check for an active session on the server and update
26
+ * session state automatically. This option allows disabling that behavior.
27
+ */
28
+ disableTrySignInSilently?: boolean;
29
+ /**
30
+ * The SDK's `AuthProvider` by default listens to route changes
31
+ * to detect `code` & `session_state` parameters and perform a token exchange.
32
+ * This option allows disabling that behavior.
33
+ */
34
+ skipRedirectCallback?: boolean;
35
+ }
36
+ export type AuthVueConfig = AuthSPAClientConfig & VueConfig;
37
+ /**
38
+ * Interface for the Authenticated state of the user which is exposed
39
+ * via `state` object from `useAuthContext` hook.
40
+ */
41
+ export interface AuthStateInterface {
42
+ /**
43
+ * The scopes that are allowed for the user.
44
+ */
45
+ allowedScopes: string;
46
+ /**
47
+ * The display name of the user.
48
+ */
49
+ displayName?: string;
50
+ /**
51
+ * The email address of the user.
52
+ */
53
+ email?: string;
54
+ /**
55
+ * Specifies if the user is authenticated or not.
56
+ */
57
+ isSignedIn: boolean;
58
+ /**
59
+ * Are the Auth requests loading.
60
+ */
61
+ isLoading: boolean;
62
+ /**
63
+ * The uid corresponding to the user who the ID token belonged to.
64
+ */
65
+ sub?: string;
66
+ /**
67
+ * The username of the user.
68
+ */
69
+ username?: string;
70
+ }
71
+ export interface AuthContextInterface {
72
+ disableHttpHandler(): Promise<boolean>;
73
+ enableHttpHandler(): Promise<boolean>;
74
+ error: AsgardeoAuthException;
75
+ getAccessToken(): Promise<string>;
76
+ getUser(): Promise<BasicUserInfo>;
77
+ getDecodedIdToken(): Promise<IdToken>;
78
+ getHttpClient(): Promise<HttpClientInstance>;
79
+ getIdToken(): Promise<string>;
80
+ getOpenIDProviderEndpoints(): Promise<OIDCEndpoints>;
81
+ httpRequest(config: HttpRequestConfig): Promise<HttpResponse<any>>;
82
+ httpRequestAll(configs: HttpRequestConfig[]): Promise<HttpResponse<any>[]>;
83
+ isSignedIn(): Promise<boolean>;
84
+ on(hook: Hooks.CustomGrant, callback: (response?: any) => void, id: string): void;
85
+ on(hook: Exclude<Hooks, Hooks.CustomGrant>, callback: (response?: any) => void): void;
86
+ on(hook: Hooks, callback: (response?: any) => void, id?: string): void;
87
+ refreshAccessToken(): Promise<BasicUserInfo>;
88
+ exchangeToken(config: TokenExchangeRequestConfig, callback?: (response: BasicUserInfo | Response) => void): void;
89
+ revokeAccessToken(): Promise<boolean>;
90
+ signIn: (config?: SignInConfig, authorizationCode?: string, sessionState?: string, state?: string, callback?: (response: BasicUserInfo) => void, tokenRequestConfig?: {
91
+ params: Record<string, unknown>;
92
+ }) => Promise<BasicUserInfo>;
93
+ signOut: (callback?: (response: boolean) => void) => Promise<boolean>;
94
+ state: AuthStateInterface;
95
+ trySignInSilently: (additionalParams?: Record<string, string | boolean>, tokenRequestConfig?: {
96
+ params: Record<string, unknown>;
97
+ }) => Promise<boolean | BasicUserInfo>;
98
+ reInitialize(config: Partial<AuthClientConfig<Config>>): Promise<void>;
99
+ }
100
+ /**
101
+ * The model of the object returned by the `getAuthParams` prop method of the `AuthProvider`.
102
+ */
103
+ export interface AuthParams {
104
+ authorizationCode?: string;
105
+ sessionState?: string;
106
+ state?: string;
107
+ }
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
3
+ *
4
+ * WSO2 LLC. licenses this file to you under the Apache License,
5
+ * Version 2.0 (the "License"); you may not use this file except
6
+ * in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ declare const _default: import("vite").UserConfig;
19
+ export default _default;