matrix-react-sdk
Version:
SDK for matrix.org using React
14 lines (13 loc) • 526 B
TypeScript
import { ComponentProps, PropsWithChildren, Reducer } from "react";
import { AuthHeaderModifier } from "./AuthHeaderModifier";
export declare enum AuthHeaderActionType {
Add = 0,
Remove = 1
}
interface AuthHeaderAction {
type: AuthHeaderActionType;
value: ComponentProps<typeof AuthHeaderModifier>;
}
export type AuthHeaderReducer = Reducer<ComponentProps<typeof AuthHeaderModifier>[], AuthHeaderAction>;
export declare function AuthHeaderProvider({ children }: PropsWithChildren<{}>): JSX.Element;
export {};