import { PayloadAction } from "@reduxjs/toolkit"; import type { SecurityRequirementObject, SecuritySchemeObject } from "docusaurus-plugin-openapi-docs/src/openapi/types"; import { ThemeConfig } from "docusaurus-theme-openapi-docs/src/types"; export declare function createAuth({ security, securitySchemes, options: opts, }: { security?: SecurityRequirementObject[]; securitySchemes?: { [key: string]: SecuritySchemeObject; }; options?: ThemeConfig["api"]; }): AuthState; export type Scheme = { key: string; scopes: string[]; } & SecuritySchemeObject; export interface AuthState { data: { [scheme: string]: { [key: string]: string | undefined; }; }; options: { [key: string]: Scheme[]; }; selected?: string; } export declare const slice: import("@reduxjs/toolkit").Slice) => void; setSelectedAuth: (state: { data: { [x: string]: { [x: string]: string | undefined; }; }; options: { [x: string]: ({ key: string; scopes: string[]; type: "apiKey"; description?: string | undefined; name: string; in: "query" | "header" | "cookie"; } | { key: string; scopes: string[]; type: "http"; description?: string | undefined; scheme: string; bearerFormat?: string | undefined; name?: string | undefined; in?: string | undefined; } | { key: string; scopes: string[]; type: "oauth2"; description?: string | undefined; flows: { implicit?: { authorizationUrl?: string | undefined; tokenUrl?: string | undefined; refreshUrl?: string | undefined; scopes: { [x: string]: string; }; } | undefined; password?: { authorizationUrl?: string | undefined; tokenUrl?: string | undefined; refreshUrl?: string | undefined; scopes: { [x: string]: string; }; } | undefined; clientCredentials?: { authorizationUrl?: string | undefined; tokenUrl?: string | undefined; refreshUrl?: string | undefined; scopes: { [x: string]: string; }; } | undefined; authorizationCode?: { authorizationUrl?: string | undefined; tokenUrl?: string | undefined; refreshUrl?: string | undefined; scopes: { [x: string]: string; }; } | undefined; }; } | { key: string; scopes: string[]; type: "openIdConnect"; description?: string | undefined; openIdConnectUrl: string; })[]; }; selected?: string | undefined; }, action: PayloadAction) => void; }, "auth", "auth", import("@reduxjs/toolkit").SliceSelectors>; export declare const setAuthData: import("@reduxjs/toolkit").ActionCreatorWithPayload<{ scheme: string; key: string; value?: string; }, "auth/setAuthData">, setSelectedAuth: import("@reduxjs/toolkit").ActionCreatorWithPayload; declare const _default: import("redux").Reducer; export default _default;