import type { KeycloakInstance } from 'keycloak-js'; import * as React from 'react'; declare type InjectedProps = { keycloakInitialized: boolean; keycloak: KeycloakInstance; }; /** * An HOC which injects the `keycloak` instance and the `keycloakInitialized` flag as props. * * @deprecated Please migrate to useKeycloak hook where/when possible. */ export declare function withKeycloak

(Component: React.ComponentType

): React.FC>; /** * SetDifference (same as Exclude) * @desc Set difference of given union types `A` and `B` * @example * // Expect: "1" * SetDifference<'1' | '2' | '3', '2' | '3' | '4'>; * * // Expect: string | number * SetDifference void), Function>; */ declare type SetDifference = A extends B ? never : A; /** * SetComplement * @desc Set complement of given union types `A` and (it's subset) `A1` * @example * // Expect: "1" * SetComplement<'1' | '2' | '3', '2' | '3'>; */ declare type SetComplement = SetDifference; /** * Subtract * @desc From `T` remove properties that exist in `T1` (`T1` has a subset of the properties of `T`) * @example * type Props = { name: string; age: number; visible: boolean }; * type DefaultProps = { age: number }; * * // Expect: { name: string; visible: boolean; } * type RestProps = Subtract; */ declare type Subtract = Pick>; export {};