import type { ConnectAdvance, ConnectAttempt, ConnectController } from "@opengeni/connect"; /** GitHub returned from a non-owner's install request: an organization owner must approve. */ export declare function isOwnerApprovalPending(attempt: Pick): boolean; /** * A built-in integration (Outlook, Gmail, ...) has one reviewed tool set, so * after the person signs in there is nothing left for them to choose: setup * continues to the preview and installs every reviewed tool by itself. Custom * OpenAPI or GraphQL sources keep the explicit tool review. */ export declare function isCuratedDefinitionAttempt(attempt: Pick): boolean; /** The next step a built-in integration takes by itself, or null when the * person must act (or an error needs their attention). */ export declare function curatedAutoAdvance(attempt: ConnectAttempt): ConnectAdvance | null; /** Microsoft said, or may have said, that an administrator must approve the app first. */ export declare function adminApprovalLink(attempt: Pick): { url: string; required: boolean; } | null; export type ConnectSetupProps = { controller: ConnectController; /** Called synchronously in the click handler so a host can open a popup. */ onAuthorize: (attempt: ConnectAttempt) => void | Promise; /** Called synchronously on Continue; hosts can reserve a popup before advancing. */ onSelectAccount?: (accountId: string) => void | Promise; /** Host pagination must retain selections across pages and submit the final set. */ onBrowseResources?: (attempt: ConnectAttempt) => void | Promise; className?: string; /** Provider-specific label supplied by the embedding host. */ authorizeLabel?: string | undefined; }; /** Controller-backed setup surface, styled by opt-in connect.css. No provider secrets enter React state. Host owns * chooser, controller lifetime, navigation and recovery after full redirect. */ export declare function ConnectSetup(props: ConnectSetupProps): import("react").JSX.Element;