/** Return value of {@link useDisconnectOAuth}. */
export interface UseDisconnectOAuthReturn {
    /**
     * Disconnect the current user's OAuth grant for an MCP server.
     *
     * Deletes the managed environment (secrets first) and then the grant
     * document. The operation is idempotent — disconnecting when no grant
     * exists returns `false` without error.
     *
     * Resolves with `true` when a grant was removed, `false` when no
     * grant existed. Callers should `refetch()` grant status and
     * credentials after a successful disconnect.
     */
    readonly disconnect: (resourceId: string, org: string) => Promise<boolean>;
    /** `true` while the disconnect request is in flight. */
    readonly isDisconnecting: boolean;
    /** Error from the last failed disconnect, or `null` when healthy. */
    readonly error: Error | null;
    /** Reset `error` to `null`. */
    readonly clearError: () => void;
}
/**
 * Behavior hook that wraps `mcpServer.disconnectOAuth()` with loading
 * and error state.
 *
 * Removes the user's OAuth grant and associated managed environment
 * for a given MCP server resource. After a successful disconnect the
 * UI should revert to the "Not connected" state — call `refetch()` on
 * the credentials / grant status hooks to reflect the change.
 *
 * @example
 * ```tsx
 * const { disconnect, isDisconnecting, error } = useDisconnectOAuth();
 *
 * await disconnect(mcpServerId, org);
 * credentials.refetch(); // refresh grant status + env
 * ```
 */
export declare function useDisconnectOAuth(): UseDisconnectOAuthReturn;
//# sourceMappingURL=useDisconnectOAuth.d.ts.map