import { CreateSliceAuthProperties } from './auth.types'; /** * This initial state represent the initial state of the authorization and authentication slice, and storage the key name of the application * @type {object} initialState * @param {string} appName - The key name of the application * @param {string} token - The token of the user that is logged in or null if the user is not logged in or the token is expired or the user is not logged in yet (the token is null) * The token is used to check if the user is logged in or not * FIXME: The is not implemented yet in the frontend, but it will be implemented in the backend * @param {string} user - The information of the user that repeats the no sesivel information of the user that is logged in * @param {string} time - The time is used to check if the token is expired or not * FIXME: The is not implemented yet in the frontend, but it will be implemented in the backend * @param {string} authorized - The boolean that represent if the user is authenticated * @param {string} authenticated - The boolean that represent if the user is authorized * @author: Juan Sebastian Perea [Juanse1595] (https://github.com/Juanse1595) * @author: Juan David Avila Caycedo [JuanDAC] (https://github.com/JuanDAC) */ /** * This constant storage all middlewares that will be apply in the slice * @type {function[]} middlewares */ /** * This slide represent the slice of the store that will be used to manage the authorization and authentication * @type {object} slice * @param {string} name - The name of the slice * @param {object} initialState - The initial state of the slice * @param {object} reducers - The reducers of the slice * @param {function[]} middlewares - The array can store the middlewares of the slice * @author: Juan Sebastian Perea [Juanse1595] (https://github.com/Juanse1595) * @author: Juan David Avila Caycedo [JuanDAC] (https://github.com/JuanDAC) */ export declare const createSliceAuth: ({ appName, middlewares }: CreateSliceAuthProperties) => (import("redux").Reducer | import("@reduxjs/toolkit").Slice, string> | import("@reduxjs/toolkit").CaseReducerActions> | { accessToken: string; refreshToken: string; authorized: string; id: string; appName: string; })[];