import * as H from 'history'; import * as React from 'react'; import { RenderMode } from '../..'; interface Props { location: H.Location; mode: RenderMode; } /** * A repository header action that toggles between showing a rendered file and the file's original * source, for files that can be rendered (such as Markdown files). */ export declare class ToggleRenderedFileMode extends React.PureComponent { private static URL_QUERY_PARAM; /** * Reports whether the location's URL displays the blob as rendered or source. */ static getModeFromURL(location: H.Location): RenderMode; /** * Returns the URL that displays the blob using the specified mode. */ private static getURLForMode; componentDidUpdate(prevProps: Props): void; render(): JSX.Element | null; } export {}; //# sourceMappingURL=ToggleRenderedFileMode.d.ts.map