import * as React from "react";
export declare const withContext: <T>(context: React.Context<T>) => <P extends T>(component: React.ComponentType<P>) => (props: Pick<P, ({ [P_1 in Extract<keyof P, string>]: P_1; } & { [P_2 in Extract<keyof T, string>]: never; } & {
    [x: string]: never;
})[Extract<keyof P, string>]>) => React.FunctionComponentElement<React.ConsumerProps<T>>;
