import * as React from "react";
export declare const withContext: <ContextType extends {}>(context: React.Context<ContextType>) => <AllComponentProps extends ContextType>(component: React.ComponentType<AllComponentProps>) => (props: Pick<AllComponentProps, ({ [P in Extract<keyof AllComponentProps, string>]: P; } & { [P_1 in Extract<keyof ContextType, string>]: never; } & {
    [x: string]: never;
})[Extract<keyof AllComponentProps, string>]> & {
    children?: React.ReactNode;
} & Partial<ContextType>) => React.ReactElement<AllComponentProps, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
