/** Return parameters whose value is the closed outcome of a redirect connect. */ export declare const INTEGRATION_CONNECT_RETURN_PARAMETERS: readonly ["integration_oauth", "social_oauth", "fiken", "slack", "google_drive", "atlassian", "github_personal_oauth", "github"]; export type IntegrationConnectReturnParameter = (typeof INTEGRATION_CONNECT_RETURN_PARAMETERS)[number]; export type IntegrationConnectReturn = { parameter: IntegrationConnectReturnParameter; /** The parameter value, for example `success`, `connected` or `error`. */ status: string; /** The error reason token, for closed outcome mapping only. */ reason: string | null; /** The connected provider domain on an MCP OAuth success, for class mapping only. */ providerDomain: string | null; }; export declare function parseIntegrationConnectReturn(search: string): IntegrationConnectReturn | null; /** Called once at boot, before the router or a route handler sees the URL. */ export declare function retainIntegrationConnectReturn(search: string): void; /** The boot-time return, at most once per document. */ export declare function takeIntegrationConnectReturn(): IntegrationConnectReturn | null; export declare function resetIntegrationConnectReturnForTests(): void;