import * as React from 'react';
import { RepoHeaderContribution, RepoHeaderContributionsLifecycleProps } from './RepoHeader';
interface Props extends RepoHeaderContribution, RepoHeaderContributionsLifecycleProps {
}
/**
 * Contributes an item to the RepoHeader. The contribution is added and remains present for this component's entire
 * lifecycle.
 *
 * A React component that needs to contribute an item to the RepoHeader should include a
 * <RepoHeaderContributionPortal> element that specifies the item.
 *
 * It is called a "portal" because it is similar to the React concept of a "portal": it effectively renders an
 * element in a different DOM hierarchy (i.e., in RepoHeader).
 */
export declare class RepoHeaderContributionPortal extends React.Component<Props> {
    componentDidMount(): void;
    componentDidUpdate(): void;
    shouldComponentUpdate(nextProps: Props): boolean;
    componentWillUnmount(): void;
    render(): JSX.Element | null;
    private addOrUpdateContribution;
}
export {};
//# sourceMappingURL=RepoHeaderContributionPortal.d.ts.map