import { type CSSProperties, type ReactNode } from 'react'; export interface IOSenseAppProps { /** The app's name, for the sign-in screen. */ name: string; /** * `required` (the default): with no session, the sign-in screen instead of the app — an app on * ontology data or IOSense's APIs needs the viewer's IOSense login. Opened from the IOSense * launchpad the session arrives on its own and the screen never shows. * `optional`: the app opens without a session, and plant data is sample data. * `none`: no IOSense sign-in at all (an app that asked for no SSO). */ auth?: 'required' | 'optional' | 'none'; /** Force sample data on or off. Left out: sample exactly when there is no session. */ sample?: boolean; /** IOSense's API host, when it is not production's. Same as `configure({ apiBaseUrl })`. */ apiBaseUrl?: string; /** Shown instead of the built-in sign-in screen. Call `onSignedIn(bearer)` when you have a session. */ signIn?: (props: { appName: string; apiBaseUrl: string; onSignedIn: (token: string) => void; }) => ReactNode; children: ReactNode; } /** * The root of an IOSense app: the session, and the sign-in screen when there is none. * * The session comes the way IOSense hands it over — the launchpad's SSO token (exchanged before the * first render), a bearer on the URL, the `.iosense.io` cookie, or one kept in this browser — and * the token is taken out of the URL at once. It renders no chrome of its own. */ export declare function IOSenseApp({ name, auth, sample, apiBaseUrl, signIn, children }: IOSenseAppProps): import("react").JSX.Element | null; /** The badge an app shows while its data is sample data. Renders nothing on live data. */ export declare function SampleBadge({ className, style }: { className?: string; style?: CSSProperties; }): import("react").JSX.Element | null;