UNPKG

@openshift-console/dynamic-plugin-sdk

Version:

Provides core APIs, types and utilities used by dynamic plugins at runtime.

34 lines (33 loc) 1.29 kB
import { Map as ImmutableMap } from 'immutable'; import { UserInfo } from '../../../extensions'; import { ImpersonateKind, SDKStoreState, AdmissionWebhookWarning } from '../../redux-types'; type GetImpersonate = (state: SDKStoreState) => ImpersonateKind; type GetUser = (state: SDKStoreState) => UserInfo; type GetAdmissionWebhookWarnings = (state: SDKStoreState) => ImmutableMap<string, AdmissionWebhookWarning>; /** * It provides impersonation details from the redux store. * @param state the root state * @returns The the impersonate state. */ export declare const getImpersonate: GetImpersonate; /** * It provides impersonation details from the redux store as a props object. * @param state the root state * @returns The the impersonation details props object. */ export declare const impersonateStateToProps: (state: SDKStoreState) => { impersonate: ImpersonateKind; }; /** * It provides user details from the redux store. * @param state the root state * @returns The the user state. */ export declare const getUser: GetUser; /** * It provides admission webhook warning data from the redux store. * @param state the root state * @returns The the admissionWebhookWarning state. */ export declare const getAdmissionWebhookWarnings: GetAdmissionWebhookWarnings; export {};