import React from "react"; type media = "print" | "screen"; interface ApplicationViewabilityShow { /** * Show on media type. * If used, `hide` cannot be set. */ show: media; hide?: never; } interface ApplicationViewabilityHide { /** * Hide on media type. * If used, `show` cannot be set. */ hide: media; show?: never; } interface ApplicationViewabilityUndecided { /** * Only one child allowed. * Need to process the `className` property. */ children: React.ReactElement<{ className?: string; }>; } export type ApplicationViewabilityProps = ApplicationViewabilityUndecided & (ApplicationViewabilityShow | ApplicationViewabilityHide); /** * Sets the viewability of the contained element regarding media. * Can be used to hide elements, e.g. when the page is printed. * For accessibility elements are still accessible to screen readers if they are hidden on screen. * Additionally, elements are displayed on screen if they contain a focused elements. */ export declare const ApplicationViewability: ({ children, show, hide }: ApplicationViewabilityProps) => React.ReactElement<{ className?: string; }, string | React.JSXElementConstructor>; export default ApplicationViewability;